Skip to main content

Python client for senat.fr website

Project description

# senapy [![Build Status](https://travis-ci.org/regardscitoyens/senapy.svg?branch=master)](https://travis-ci.org/regardscitoyens/senapy) [![Coverage Status](https://coveralls.io/repos/github/regardscitoyens/senapy/badge.svg?branch=master)](https://coveralls.io/github/regardscitoyens/senapy?branch=master)

A python client for [senat.fr](https://senat.fr) website.

## Main goal

Retrieve painlessly JSON data from [senat.fr](https://senat.fr).

## Requirements

Python 3

## Install:

  • from pip: pip3 install senapy

  • locally: pip3 install -e .

## Dossiers Legislatifs

  • Parse one: senapy-cli parse URL_or_filepath
    • example: senapy-cli parse pjl16-537 (instead of the URL, you can just give the ID)

    • warning: for now the file must be in UTF-8

  • Get all the urls: senapy-cli doslegs_urls

  • Parse many: cat urls | senapy-cli parse_many output_dir

## Search services

  • QuestionSearchService to search for questions

## Tests:

  • pip3 install pytest

  • pytest

  • If you modify the output, there’s an utility to make the tests reflect that: python tests/tools/regen_regressions_output.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

senapy-0.2.6.tar.gz (14.5 kB view details)

Uploaded Source

File details

Details for the file senapy-0.2.6.tar.gz.

File metadata

  • Download URL: senapy-0.2.6.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for senapy-0.2.6.tar.gz
Algorithm Hash digest
SHA256 09b58d0b962bb9ae7f29a3f9e57c60745da554e2dd0e2d95e4216d699ee520f2
MD5 42875132cac1a0a9af05bf5822abdac0
BLAKE2b-256 e0a61e12e1edaaf4282224efe686f11d31a06fa99e34521de17a276a4cf34b71

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page