You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import pyalex
print(
pyalex.Works()
.select(["id", "title"])
.search("(alpha OR bravo OR charlie) AND (delta OR gamma) ")
.get()
)
I get the response
[{'id': 'https://openalex.org/W2047982128', 'title': 'Differential expression of peroxisome proliferator-activated receptors (PPARs): tissue distribution of PPAR-alpha, -beta, and -gamma in the adult rat.'}, {'id': 'https://openalex.org/W2036007897', 'title': 'Gamma, alpha, delta, and theta oscillations govern cognitive processes'}, ...
That response seems correct for the boolean query you gave. Maybe, the problem is that you are not using the paginator correctly? Check out this example of pagination to see how you could do it.
Hi can't get my head around on how to query by pyalex for the following :
(alpha OR bravo OR charlie) AND (delta OR gamma)
This is not working corrrectly:
query_results = (
Works()
.search("(alpha OR bravo OR charlie) AND (delta OR gamma) ")
.paginate(per_page=100, n_max=max_results)
)
getting desperate
The text was updated successfully, but these errors were encountered: