Python script help 4 replies

Please wait...

MrFancypants Forum Admin

The Bad

217,010 XP

7th December 2003

0 Uploads

20,003 Posts

6 Threads

#1 6 years ago

I found a nice little tool that supposedly collects citation data from google scholar automatically if you supply it with a name and homepage. I can't get it to work though.

Here is a link: Topp: Publication-Citation Construction

It seems that all you need to do is to install Python and start the program. Regardless of whether I use the batch mode with the example batch file or single person mode I get the following error: "nontype error object is not iterable". Which probably means that some part of the program is handed an empty variable and doesn't know what to do with it.

Any ideas on what I am doing wrong? Or do you know other tools with similar functionality?




Nemmerle Forum Mod

Voice of joy and sunshine

298,365 XP

26th May 2003

0 Uploads

28,147 Posts

5 Threads

#2 6 years ago

My first guess, knowing a limited amount about this, would be that you should be doing

python -m topp.authorstats ('Alexandra Boldyreva', 'http://www.cc.gatech.edu/~aboldyre/publications.html')

You might also try http://www.harzing.com/pop.htm

http://hview.limsi.fr/

or

http://interaction.lille.inria.fr/~roussel/projects/scholarindex/index.cgi

Which are listed on the topp website.




MrFancypants Forum Admin

The Bad

217,010 XP

7th December 2003

0 Uploads

20,003 Posts

6 Threads

#3 6 years ago

This results in another error message: ValueError: invalid literal for int() with base 10: "'http://www.cc.gatech.edu/~ aboldyre/publications.html')"

I also thought at first that I didn't hand the arguments correctly to the function, so I modified the main function by adding a print statement which gives out the name and url that the program gets from the command line before doing anything else. That part seems to work.




Nemmerle Forum Mod

Voice of joy and sunshine

298,365 XP

26th May 2003

0 Uploads

28,147 Posts

5 Threads

#4 6 years ago

I can't open http://www.cc.gatech.edu/~aboldyre/publications.html in my browser. Are you sure the url isn't malformed - or perhaps you can only access it through a specific proxy?




MrFancypants Forum Admin

The Bad

217,010 XP

7th December 2003

0 Uploads

20,003 Posts

6 Threads

#5 6 years ago

The link works for me. I also tried other name/link combinations, no luck though.

I also tried different python 2.7 installations (32bit on windows, 64 bit on windows and 32bit on unix). Too bad that this doesn't work - disambiguating lots of author names manually is a pain in the butt.