Comments (3)
Okay, this is what I think is going on.
It takes multiple hours to scrape nyc bills and in that time there may be some bill activity added to the legistar system. This can change the sort order and cause the same bill to be iterated through. This only sometimes happens, of course.
Not sure what the best way to handle this is. Thoughts @mileswwatkins @rshorey
from scrapers-us-municipal.
This may actually be a deeper question. Who's responsibility is it to make sure that every bill object in a scrape is unique. The scraper or pupa? cc @jamesturk @jpmckinney @paultag
from scrapers-us-municipal.
I think this needs to be done by the scraper. Pupa throws errors for non-unique stuff, but it has no way of knowing what to resolve to if two things are not unique.
For NYC, perhaps it'd make sense to pull the whole bill list first, store it, and then access the individual bills so there's less time for things to change. Would that make sense in this case?
from scrapers-us-municipal.
Related Issues (20)
- Chicago: Ald Reilly has incorrect term start date HOT 3
- Chicago: attribute Dept./Agency to Mayor for sponsorships
- Chicago: missing bill R2023-0004485 HOT 1
- Chicago: missing vote_event on agenda item HOT 1
- Chicago: duplicate events from different sources HOT 2
- Chicago: individual participants missing from event HOT 1
- Chicago: event in the past has confirmed status
- Chicago: agenda item not connecting to vote_event HOT 1
- Chicago: some agenda actions not being captured HOT 2
- Chicago: Parse PDF of agenda when agenda is missing from API
- The order of bill history is not accurate HOT 1
- Chicago: add introduction as an action
- Chicago: missing action on bill HOT 1
- Chicago: misnamed legislative session
- Chicago: bill history order is wrong
- Chicago: Attach Rule 45 reports to events
- Errors when setting up with Docker
- capture keyLegislation for chicago bills.
- chicago: not getting the latest events HOT 1
- Chicago: scrape"Action description" text for bill actions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrapers-us-municipal.