Code Monkey home page Code Monkey logo

Comments (3)

barnett2010 avatar barnett2010 commented on September 4, 2024

是否需要规定文献来源(y/n)?n
正在检索中.....
--------------------------
Traceback (most recent call last):
File "main.py", line 259, in
main()
File "main.py", line 253, in main
search.search_reference(get_uesr_inpt())
File "main.py", line 99, in search_reference
self.pre_parse_page(second_get_res.text), second_get_res.text)
File "main.py", line 107, in pre_parse_page
page_source).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

from cnki-download.

PPF12138 avatar PPF12138 commented on September 4, 2024

是否需要规定文献来源(y/n)?n 正在检索中..... -------------------------- Traceback (most recent call last): File "main.py", line 259, in main() File "main.py", line 253, in main search.search_reference(get_uesr_inpt()) File "main.py", line 99, in search_reference self.pre_parse_page(second_get_res.text), second_get_res.text) File "main.py", line 107, in pre_parse_page page_source).group(1) AttributeError: 'NoneType' object has no attribute 'group'

试试将所有文件中的"http"都替换成"https"

from cnki-download.

DavidLeexxxx avatar DavidLeexxxx commented on September 4, 2024

Traceback (most recent call last): File "C:\Users\Administrator\Desktop\CNKI-download\main.py", line 259, in main() File "C:\Users\Administrator\Desktop\CNKI-download\main.py", line 253, in main search.search_reference(get_uesr_inpt()) File "C:\Users\Administrator\Desktop\CNKI-download\main.py", line 98, in search_reference self.parse_page( File "C:\Users\Administrator\Desktop\CNKI-download\main.py", line 186, in parse_page page_detail.get_detail_page(self.session, self.get_result_url, File "C:\Users\Administrator\Desktop\CNKI-download\GetPageDetail.py", line 80, in get_detail_page self.pars_page(get_res.text) File "C:\Users\Administrator\Desktop\CNKI-download\GetPageDetail.py", line 89, in pars_page orgn_list = soup.find(name='div', class_='orgn').find_all('a') AttributeError: 'NoneType' object has no attribute 'find_all'

请问这个问题您后面解决了么

from cnki-download.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.