Open jessicabeyer opened 5 years ago
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.
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.
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.
I'd like to be able to pull beginning and ending page numbers using pull_wos(). Is that possible at all?