Closed granitelemental closed 4 years ago
The solution can be found in the following comment: https://github.com/OrganicIrradiation/scholarly/issues/44#issuecomment-527869233
Latest version from git seems to fix the issue:
pip3 install -U git+https://github.com/OrganicIrradiation/scholarly.git
search_query = scholarly.search_pubs_query("Perception of physical stability and center of mass of 3D objects")
p = next(search_query)
print(p)
returns
{'_filled': False,
'bib': {'abstract': 'Humans can judge from vision alone whether an object is '
'physically stable or not. Such judgments allow observers '
'to predict the physical behavior of objects, and hence '
'to guide their motor actions. We investigated the visual '
'estimation of physical stability of 3-D objects (shown '
'in stereoscopically viewed rendered scenes) and how it '
'relates to visual estimates of their center of mass '
'(COM). In Experiment 1, observers viewed an object near '
'the edge of a table and adjusted its tilt to the '
'perceived critical angle, ie, the tilt angle at which '
'the object …',
'author': 'SA Cholewiak and RW Fleming and M Singh',
'eprint': 'https://jov.arvojournals.org/article.aspx?articleID=2213254',
'title': 'Perception of physical stability and center of mass of 3-D '
'objects',
'url': 'https://jov.arvojournals.org/article.aspx?articleID=2213254',
'venue': 'Journal of vision',
'year': ' 2015'},
'citedby': 19,
'id_scholarcitedby': '15736880631888070187',
'source': 'scholar',
'url_scholarbib': 'https://scholar.googleusercontent.com/scholar.bib?q=info:K8ZpoI6hZNoJ:scholar.google.com/&output=citation&scisdr=CgU4ogivGAA:AAGBfm0AAAAAXsKpcupPM5AU6NNCS6Nq83sSR8e9Kp5M&scisig=AAGBfm0AAAAAXsKpctMpntvJNSwOuGTbyNxCCKrMyaWr&scisf=4&ct=citation&cd=0&hl=en'}
I wanted to retrieve citations of an article. But bib dictionary has no "citedby" key:
import scholarly search_query = scholarly.search_pubs_query("Perception of physical stability and center of mass of 3D objects") p = next(search_query) print(p)
it shows this:
{'_filled': False, 'bib': {'abstract': 'Humans can judge from vision alone whether an object is ' 'physically stable or not. Such judgments allow observers ' 'to predict the physical behavior of objects, and hence ' 'to guide their motor actions. We investigated the visual ' 'estimation of physical stability of 3-D objects (shown ' 'in stereoscopically viewed rendered scenes) and how it ' 'relates to visual estimates of their center of mass ' '(COM). In Experiment 1, observers viewed an object near ' 'the edge of a table and adjusted its tilt to the ' 'perceived critical angle, ie, the tilt angle at which ' 'the object …', 'author': 'SA Cholewiak and RW Fleming and M Singh', 'eprint': 'https://jov.arvojournals.org/article.aspx?articleID=2213254', 'title': 'Perception of physical stability and center of mass of 3-D ' 'objects', 'url': 'https://jov.arvojournals.org/article.aspx?articleID=2213254'}, 'source': 'scholar'}
I found that _KEYWORDSEARCH should be as follows to solve the problem: _KEYWORDSEARCH = '/citations?view_op=search_authors&hl=en&mauthors=label:{0}' But in my version of scholarly.py it is already _KEYWORDSEARCH = '/citations?view_op=search_authors&hl=en&mauthors=label:{0}'.
Does anybody know how to get citations of an article using scholarly.py?