Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser fails on results with only citation: TypeError: slice indices must be integers or None or have an __index__ method #118

Open
tengerye opened this issue Feb 8, 2019 · 4 comments

Comments

@tengerye
Copy link

tengerye commented Feb 8, 2019

Hi, the following command scholar.py -a "albert einstein" -t -s "quantum theory," will cause the following error:

Traceback (most recent call last):
  File "scholar.py", line 1310, in <module>
    sys.exit(main())
  File "scholar.py", line 1293, in main
    querier.send_query(query)
  File "scholar.py", line 1027, in send_query
    self.parse(html)
  File "scholar.py", line 1055, in parse
    parser.parse(html)
  File "scholar.py", line 397, in parse
    self._parse_article(div)
  File "scholar.py", line 571, in _parse_article
    if tag.find('div', {'class': 'gs_ttss'}):
TypeError: slice indices must be integers or None or have an __index__ method

I checked the html returned and it shows like this:
screenshot from 2019-02-08 16-07-54

Would you please have a look?

@GianniSalami
Copy link

I have noticed that too. From what I found the gs_ttss class does not exist on the google scholar search results page. If anyone knows how to fix it that would be awesome

@vict0rsch
Copy link

Having this issue here too

@simplecomplex-tech
Copy link

Having same issue too

@simplecomplex-tech
Copy link

follow this one: #116

j3soon added a commit to j3soon/ckreibich-scholar.py that referenced this issue Dec 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants