Skip to content

Commit 47a4039

Browse files
committed
Created an example script
1 parent 6eaa2cb commit 47a4039

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

example.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from arxivcollector import ArXivCollector
2+
3+
4+
def create(url, title="output", mode='bibtex'):
5+
# Initiate a new instance of the arXivCollector class
6+
collector = ArXivCollector()
7+
# Set the title of the exported file (optional)
8+
collector.set_title(title)
9+
collector.set_mode(mode)
10+
# Pass the search URL to the run method
11+
collector.run(url)
12+
13+
14+
url = 'https://arxiv.org/search/advanced?advanced=&terms-0-operator=AND&terms-0-term=stochastic+parrot&terms-0-field=title&classification-physics_archives=all&classification-include_cross_list=include&date-filter_by=all_dates&date-year=&date-from_date=&date-to_date=&date-date_type=submitted_date&abstracts=show&size=50&order=-announced_date_first'
15+
16+
create(url, "output", "csv")

0 commit comments

Comments
 (0)