معرفی شرکت ها


cdp-scrapers-0.6.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Scratchpad for scraper development and general utilities.
ویژگی مقدار
سیستم عامل -
نام فایل cdp-scrapers-0.6.1
نام cdp-scrapers
نسخه کتابخانه 0.6.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Eva Maxfield Brown, Sung Cho, Shak Ragoler
ایمیل نویسنده evamaxfieldbrown@gmail.com
آدرس صفحه اصلی https://github.com/CouncilDataProject/cdp-scrapers
آدرس اینترنتی https://pypi.org/project/cdp-scrapers/
مجوز MIT license
# cdp-scrapers [![Build Status](https://github.com/CouncilDataProject/cdp-scrapers/workflows/Build%20Main/badge.svg)](https://github.com/CouncilDataProject/cdp-scrapers/actions) [![Documentation](https://github.com/CouncilDataProject/cdp-scrapers/workflows/Documentation/badge.svg)](https://CouncilDataProject.github.io/cdp-scrapers/) Scratchpad for scraper development and general utilities. --- ## Council Data Project Council Data Project is an open-source project dedicated to providing journalists, activists, researchers, and all members of each community we serve with the tools they need to stay informed and hold their Council Members accountable. For more information about Council Data Project, please visit [our website](https://councildataproject.org/). ## About `cdp-scrapers` is a collection of utilities and in-progress or actively maintained CDP instance event scrapers. The purpose of this library is to help new CDP instance maintainers have a quick plethora of examples for getting started on developing their event scraper functions. ## Quick Start ### Legistar General Legistar utility functions. ```python from cdp_scrapers.legistar_utils import get_legistar_events_for_timespan from cdp_scrapers.instances import get_seattle_events from datetime import datetime # Get all events (and minutes item and voting details) # for a provided timespan for a legistar client # Returns List[Dict] seattle_legistar_events = get_legistar_events_for_timespan( client="seattle", timezone="America/Los_Angeles", start=datetime(2021, 7, 12), end=datetime(2021, 7, 14), ) # Or parse and convert to CDP EventIngestionModel seattle_cdp_parsed_events = get_seattle_events( from_dt=datetime(2021, 7, 12), to_dt=datetime(2021, 7, 14), ) ``` ### Scrapers #### Event Scraper Structure ![get_events](./images/get_events.png) Our current event scraper structure is as shown above. The main function `get_events` gets all the required data and it calls the `get_content_uris` function to return the required video data. If your city uses Legistar and the Legistar data is publicly available. - You may be able to reuse our scraper with minimal modifications, such as providing the correct Legistar client ID for your municipality. - If the Legistar data returned only does not include the EventVideoPath field for the `Session.video_uri` data, you will only need to implement `get_content_uris`. If your city does not use Legistar. - You will need to build your own event scraper. Example of a completed scraper: [cdp_scrapers.instances.seattle.SeattleScraper](https://councildataproject.org/cdp-scrapers/_modules/cdp_scrapers/instances/seattle.html#SeattleScraper) For more details about creating a custom scraper for your municipality's Legistar data, please visit [here](https://councildataproject.org/cdp-scrapers/legistar_scraper.html). If you would like to deploy a CDP instance or would like to use this library as a method for retrieving formatted legislative data, please feel free to contribute a new custom municipality scraper! #### Creating a Custom Scraper If it isn't possible to use our generalized Legistar tooling to write your scraper, you will need to create your own event scraper to proceed with the deployment. 1. Please see our documentation on the [minimum data required for CDP event ingestion](https://councildataproject.org/cdp-backend/ingestion_models.html) to understand what data your scraper should return. 2. From there, begin with our [empty custom scraper function template](https://councildataproject.org/cdp-scrapers/_modules/cdp_scrapers/instances/empty.html#get_events) and fill in your scraper. 3. After your scraper is completed, you can create a pull request to add your scraper into the [cdp-scrapers repo](https://github.com/CouncilDataProject/cdp-scrapers) so it can be added into the final repo for your CDP instance. 4. Our automated action will run your scraper to verify it returns the correct data. If it is successful, you may proceed to the next deployment step. If not, we will automatically share the error message so you can fix the issue and the scraper can be tested again afterwards. ## Installation **Stable Release:** `pip install cdp-scrapers`<br> **Development Head:** `pip install git+https://github.com/CouncilDataProject/cdp-scrapers.git` ## Documentation For full package documentation please visit [councildataproject.org/cdp-scrapers](https://councildataproject.org/cdp-scrapers). ## Development Refer to [CONTRIBUTING.md](CONTRIBUTING.md) for information related to developing the code. **MIT license**


نیازمندی

مقدار نام
~=4.9 beautifulsoup4
>=3.2.4 cdp-backend
~=0.7.1 defusedxml
~=2021.1 pytz
~=2.25 requests
~=0.6.0 clean-text
~=0.2.5 civic-scraper
~=4.9 beautifulsoup4
>=3.2.4 cdp-backend
~=0.7.1 defusedxml
~=2021.1 pytz
~=2.25 requests
~=0.6.0 clean-text
~=0.2.5 civic-scraper
~=4.3 selenium
~=3.8 webdriver-manager
>=19.10b0 black
>=3.8.3 flake8
>=3.2.1 flake8-debugger
>=5.4.3 pytest
>=2.9.0 pytest-cov
>=0.11 pytest-raises
>=3.15.2 tox
>=1.0.1 bump2version
>=7.15.0 ipython
>=0.2.7 m2r2
>=3.4.3 Sphinx
>=0.5.1 sphinx-rtd-theme
>=3.1.1 twine
>=0.34.2 wheel
~=4.3 selenium
~=3.8 webdriver-manager
~=4.3 selenium
~=3.8 webdriver-manager
>=19.10b0 black
>=3.8.3 flake8
>=3.2.1 flake8-debugger
>=5.4.3 pytest
>=2.9.0 pytest-cov
>=0.11 pytest-raises
>=3.15.2 tox
>=1.0.1 bump2version
>=7.15.0 ipython
>=0.2.7 m2r2
>=3.4.3 Sphinx
>=0.5.1 sphinx-rtd-theme
>=3.1.1 twine
>=0.34.2 wheel
~=4.3 selenium
~=3.8 webdriver-manager
>=19.10b0 black
>=3.8.3 flake8
>=3.2.1 flake8-debugger
>=5.4.3 pytest
>=2.9.0 pytest-cov
>=0.11 pytest-raises
>=3.15.2 tox


زبان مورد نیاز

مقدار نام
>=3.7 Python


نحوه نصب


نصب پکیج whl cdp-scrapers-0.6.1:

    pip install cdp-scrapers-0.6.1.whl


نصب پکیج tar.gz cdp-scrapers-0.6.1:

    pip install cdp-scrapers-0.6.1.tar.gz