Closed zdarktknight closed 7 years ago
I tried to search “Computers and Chemical Engineering” without specifying the count
parameter and it worked well. I also tried to set count=100
, which also returned the results well.
Try to change your count to smaller number. I suspect that your count
param is too big.
1000 also worked out well.
`papers_dict, total = scopus.search_venue('Computers and Chemical Engineering', year_range=(1999,2000), show=False)' I get another error saying:
title = entry.find('dc:title').text AttributeError: 'NoneType' object has no attribute 'text'
I cannot reproduce your problem.
BTW, why you are returning dict
and total
? search_venue
only return a dictionary.
After I install it. There are 3 types of errors in my machine:
I want to return all the searched results, so I modified your source code a little bit.
For the trunc
function, it may be the bug where I forgot to add import in the .py
file. This does not matter though -- you can set show=False
so that trunc
would not be used.
I did not expect that a paper could be retrieved but there is no title for it. Besides, I run your code but cannot reproduce your problem.
I think I changed the coding to be able to handle UTF-8. I use my package a lot and never encountered such problem.
If you want to search for all the result, I suggest you send the http request from your browser. There will be an entry for the total number of papers and you can use that.
However, you should acquaint yourself with the API specifications: I think my implementation only returns scopus id
and title
. To retrieve more detailed information such as date, authors, citation, or even abstracts, you have to know your api limits. Otherwise, you will not be able to get all the information you wanted,
New release should not have any problem now.
`papers_count = scopus.search_venue('Computers and Chemical Engineering', count=7048, year_range=(1977,2016), show=False)'
I get an error saying: raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 400: Bad Request