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

Page numbers #9

Open
jessicabeyer opened this issue Feb 1, 2019 · 3 comments
Open

Page numbers #9

jessicabeyer opened this issue Feb 1, 2019 · 3 comments

Comments

@jessicabeyer
Copy link

I'd like to be able to pull beginning and ending page numbers using pull_wos(). Is that possible at all?

@crew102
Copy link
Owner

crew102 commented Feb 1, 2019

It's possible to parse the page numbers out of the XML that the API serves. However, I can't currently implement this feature b/c I have temporarily lost access to the API.

I'll keep this issue open and if I regain access to the API then I'll add page numbers for you.

@jessicabeyer
Copy link
Author

I've found a sample response of the Web of Science API here. From reading through the functions, I think we'd need to modify the parse_gen_pub_data function to add another xml query for page number. I think it would be something to the effect of page = ".//summary//page[1]"? If you could make that change, I'd be happy to test if it works for my case.

@crew102
Copy link
Owner

crew102 commented Feb 21, 2019

Hi @jessicabeyer, yeah, that's roughly all it would take to add page numbers. You'd also have to update get_pub_df() and the schema data object. Also, I'd probably want to use the begin and end attributes of the page element instead of the actual value of the element itself (so you'd have a page_begin field and page_end field instead of a page range). I'm hesitant to change anything until I can test things myself, though, but you're free to make those changes yourself if you'd like.

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

2 participants