-
Notifications
You must be signed in to change notification settings - Fork 662
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
Update congresspeople advisors script #252
base: master
Are you sure you want to change the base?
Update congresspeople advisors script #252
Conversation
…py (previously fetch_deputies_advisors.py)
@bruno-schmidt this is great! thank you! a question though: I got some errors while running the script as follows, is this expected?
|
hey @jtemporal ! I did some runs and looks like their servers are a bit instable today. I got some (different) errors too, but the script run fine afterwards. That's not normal, but happens. :( The errors I got was If it's happening a lot or your computer is sending/processing the requests too fast, you may decrease the connection pool in line 65, param |
I got those the 3 times I ran it in the last few days, I'll check if reducing the pool size improves the results. Apart from that, everything seems to be working fine! 🎉 |
In a Jarbas script that also reaches one of Chamber serves we stop for a while after 256 requests (I could push that as far as ~500 requests before pausing for 2s but I decided for a huge margin). |
Ouch! :( I will write down some info, maybe it can help to figure out something! This script will send aprox. 800 requests. In my computer it completes in ~90 seconds with connection pool size 8 and ~65 seconds with 16. I have an Intel i3-2100 (2 cores + 2 threads) and HDD 5200rpm. What do you guys think? |
Use full text search to query reimbursements
Fix #237!
There was a bug due to HTML and url changes in
CAMARA_URL
.Also I changed the words "deputy"/"deputies" to "congressperson"/"congresspeople" in
src/fetch_congresspeople_advisors.py
as pointed by @jtemporal (#149)!