mitsuhiko / flatex-pdf-download

some code to toy with that can download flatex.at pdfs
Apache License 2.0
43 stars 8 forks source link

Fix pdf download #4

Closed Krensi closed 1 year ago

Krensi commented 1 year ago

We fixed the pdf download. Flatex was detecting the user agent of the script as python bot and blocked it. Using another user agent fixed the 503 response. We updated the regex as well, so everything is working now. :-)

One suggestion: A lot of other projects concerned with flatex downloads always consider the maximum of 100 pdfs for a time range. If someone might be too active on flatex the 100 documents could be reached within the 14 days time delta. Maybe we will add a check for this next week. :-P

Greetings from Graz! :-)

mitsuhiko commented 1 year ago

Thank you!