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

Get more than 25 articles from ISSN #4

Closed
Belzun opened this issue Jan 13, 2018 · 11 comments
Closed

Get more than 25 articles from ISSN #4

Belzun opened this issue Jan 13, 2018 · 11 comments

Comments

@Belzun
Copy link

Belzun commented Jan 13, 2018

When I execute
x <- generic_elsevier_api(query = "ISSN(0004-3702) AND YEAR(2001)", search_type = "scopus") x$content$search-results$opensearch:totalResults``
I get 66 as results obtained, but I can't see more than 25, that are the first page. How can I get all the results?

Thanks for this package!!

@muschellij2
Copy link
Owner

muschellij2 commented Jan 13, 2018 via email

@Belzun
Copy link
Author

Belzun commented Jan 14, 2018

I am not able to see more than 25 results. I have tried adding more information to my query, such as COUNT(1), or PAGE(1) and similar things, but nothing worked.

@muschellij2
Copy link
Owner

muschellij2 commented Jan 14, 2018 via email

@Belzun
Copy link
Author

Belzun commented Jan 14, 2018

So this package won't help me getting more than 25 results?

@muschellij2
Copy link
Owner

muschellij2 commented Jan 14, 2018 via email

@muschellij2
Copy link
Owner

This will get you started.

devtools::install_github("muschellij2/rscopus")
x <- generic_elsevier_api(
query = "ISSN(0004-3702) AND YEAR(2001)", 
search_type = "scopus")
x$content$`search-results`$`opensearch:totalResults`
[1] "66"
xx = get_next(x)
length(xx$content$`search-results`$entry)
[1] 25
xxx = get_next(xx)
length(xxx$content$`search-results`$entry)

@Belzun
Copy link
Author

Belzun commented Jan 16, 2018

Thank you very much for this.
The first get_next() works fine, but the second get_next() and the following ones don't work, they return the same result.
xx = get_next(x) works well.

xxx = get_next(xx) doesn't work.

@muschellij2
Copy link
Owner

muschellij2 commented Jan 16, 2018 via email

@Belzun
Copy link
Author

Belzun commented Jan 16, 2018

If I apply get_next() to the one obtained with get_next(), I don't get the next page.
For example:
x <- generic_elsevier_api(query = "ISSN(0004-3702) AND YEAR(2001)", search_type = "scopus") It returns from 1 to 25.
xx = get_next(x) Returns 26 to 50.
xxx = get_next(xx) Returns the same as xx, from 26 to 50, not 51 to 75 (66 in this case).

@muschellij2
Copy link
Owner

muschellij2 commented Jan 16, 2018 via email

@Belzun
Copy link
Author

Belzun commented Jan 16, 2018

I just downloaded your package again from your github and works perfect. I don't understand why, but now it works.
So thanks a lot for your time, I really appreciate it. And thank you for this package, it makes everything easier.

Regards,
Oscar

@Belzun Belzun closed this as completed Jan 16, 2018
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