city-bureau / city-scrapers Goto Github PK
View Code? Open in Web Editor NEWScrape, standardize and share public meetings from local government websites
Home Page: https://cityscrapers.org
License: MIT License
Scrape, standardize and share public meetings from local government websites
Home Page: https://cityscrapers.org
License: MIT License
especially using stuff via comment mode
finish #54 then move on to this
since I just copied over from the readme, there's stuff that is now in the contributing a spider guide that doesn't need to be there
Hi all,
We've built out a few sites that seem somewhat similar to the aims of this project
We have found that these have not been widely used.
We suspect that the main barrier to participation is not knowing when and where meetings occur, but an understanding of
A comprehensive source for the time and place of public meetings can be useful, but I'm wondering if you all are thinking of addressing any of the other barriers?
Based on a discussion, we need to document the following process for developers in the documentation:
Tasks to close this issue:
Original issue content
Not sure if we want to get into trying to parse PDFs, but the Chicago Housing Authority's meetings are posted as an image and PDF.
Is it worth trying to automate the import of this information? Or is is better to just have a list of sources that a human needs to enter into the system once per year?
The genspider tests leave new files in the tests directory, somewhat out of necessity. Not a big deal but worth noting.
we could:
Hey @diaholliday, @eads said you would be the one to ask about this. I'd like to contribute events to your aggregator from the Rockford area. Being a municipal area with one of the larger populations in Illinois, I'd like to get some action going around documenting public meetings here, as nothing like this currently exists. Ideally, I will be able to add agencies/orgs from not just Rockford proper but including the surrounding municipalities within Winnebago county.
What is the appropriate way to go about doing this? I don't want to step on toes and it looks as if your current spreadsheet has things almost exclusively limited to Chicago and Cook County. Should I add a new tab for Rockford Area, or add Rockford and related items to their own bordered section on the appropriate tabs that already exist?
I'm looking forward to contributing!
@mwgalloway raised this issue. @diaholliday might have some thoughts about how to structure this as the open civic data specification doesn't account for it
I'd like to propose we implement a code of conduct for all project-related spaces and activities.
I'm partial to the generic code we developed at FreeGeek (and we stole a tremendous amount of it from the Geek Feminism anti-harassment policy).
cc @diaholliday
I think it would be nice to have an event validator as a part of the pipeline in order to ensure that any data that gets downstream has all of the required fields in the correct formats.
@r-wei suggested that the invoke genspider
command should pull a sample file automatically for testing, which is very wise but will require some updates to the command.
The link to documentation in the readme file 404s.
Step 1: To access the data, guess the name of the client here: http://webapi.legistar.com/
The name of the client is not:
cookcounty
cook-county
cookcountyil
cookcountygov
cookcountygovil
cookcountyilgov
(documenters-aggregator) ➜ documenters-aggregator git:(master) ✗ pytest
======================================================================== test session starts =========================================================================
platform darwin -- Python 3.6.2, pytest-3.1.3, py-1.4.34, pluggy-0.4.0
rootdir: /Users/DE-Admin/Code/documenters-aggregator, inifile:
collected 310 items
tests/test_cchhs.py ..........................................................................................................................................................................................................................................................
tests/test_idph.py .......................................................
tests/test_tasks.py ....F
============================================================================== FAILURES ==============================================================================
_______________________________________________________________________ test_gen_html_content ________________________________________________________________________
def test_gen_html_content():
tasks._gen_html(SPIDER_NAME, SPIDER_START_URLS)
test_file_content = read_test_file_content('files/testspider_articles.html.example')
rendered_content = read_test_file_content('files/testspider_articles.html')
> assert test_file_content == rendered_content
E assert '<!doctype ht...ody>\n</html>' == '<!doctype htm...ody>\n</html>'
E Skipping 3940 identical leading characters in diff, use -v to show
E Skipping 210551 identical trailing characters in diff, use -v to show
E - ed/common-5087336d1f748f6e2186-min.js"]; })(SQUARESPACE_ROLLUPS, 'squarespace-common');</script>
E ? ^ ----- ^^ ^^^ ^ ^
E + ed/common-d8a982e40d16144e2580-min.js"]; })(SQUARESPACE_ROLLUPS, 'squarespace-common');</script>
E ? ^^^^^^^^ ^^ ^ ^ ^
E - <script crossorigin="anonymous" src="//static.squarespace.com/universal/scripts-compressed/common-5087336d1f748f6e2186-min.js"></script><script>(function(rollups, name) { if (!ro...
E
E ...Full output truncated (9 lines hidden), use '-vv' to show
tests/test_tasks.py:40: AssertionError
================================================================ 1 failed, 309 passed in 2.85 seconds ================================================================
Suggested by @milti
City council and committee meetings are available here:
invoke runtests
You indicated pty=True, but your platform doesn't support the 'pty' module!
Unfortunately pseudo terminal handling is not available for Windows, and the pty=true flag prevents you from invoking runtests. Most people are probably not doing the frustrating thing of trying to run things in Windows like I am, but just case, I know one solution mentioned was to put in an os check.
This has come up a few times in various issues (#33, #5). We should evaluate the following existing projects and APIs and identify how we can leverage them to eliminate duplicated effort:
Open Civic Data has some scrapers already built that we should consider using:
Datamade has an API that is used to power Councilmatic, which displays Chicago City Council meetings.
The Cook County Clerk site uses JavaScript to load the details for events, but unfortunately, it uses ASP and therefore the AJAX requests are not as easy to fake as they would be in other web apps.
http://www.cookcountyclerk.com/countyboard/boardmeetings/Pages/default.aspx
There are probably other sites that we'll need to handle using a similar approach once we figure this one out.
There's a bunch of machinery around tests that should be built out before too many contributions are made, specifically a common approach to mocking responses so we can test parsing
... or something
The OpenCivicData spec is unclear on this point. To wit, "Starting date / time of the event. This should be fully timezone qualified."
What does that even mean?
Two top options imho:
Leaning towards Gitbook.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.