corona_chan_gob_mx
corona chan scraper for gob mx
Free software: WTFPL
Documentation: https://corona-chan-gob-mx.readthedocs.io.
Features
le los pdf publicados en casos de covid-19 en mexico
transforma las tablas de los pdf en listas de dicionarios para poder ser procesadas en python de manera mas facil
How to use
el uso basico seria con
import corona_chan_gob_mx import get_today_cases()
table = get_today_cases()
for row in table:
assert isinstance( row, dict )
se puede adquirir la lista de pdfs con
import corona_chan_gob_mx.scraper import list_of_pdfs
links = list_of_pdfs.get()
print( links.native )
# [
# 'https://www.gob.mx/cms/uploads/attachment/file/544087/'
# 'Tabla_casos_sospechosos_COVID-19_2020.03.29.pdf',
# 'https://www.gob.mx/cms/uploads/attachment/file/544086/'
# 'Tabla_casos_positivos_COVID-19_resultado_InDRE_2020.03.29.pdf' ]
for link in links.native:
table = link.get()
for row in table.native:
assert isinstance( row, dict )
para leer pdf sin descargarlos
import corona_chan_gob_mx.scraper import pdf_to_dicts
tabla = pdf_to_dict( "/path/to/pdf/tabla.pdf" )
for row in table:
assert isinstance( row, dict )
History
0.0.1 (2020-03-28)
First release on PyPI.
Metadata
Release files for corona-chan-gob-mx 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| corona_chan_gob_mx-1.0.0.tar.gz | 13.7 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| corona_chan_gob_mx-1.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 13.7 MB
Release files / corona_chan_gob_mx-1.0.0.tar.gz
| Download URL | corona_chan_gob_mx-1.0.0.tar.gz |
|---|---|
| Size | 13.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60ca496540e3f9a98d6b9fe64d8935aa12353eef442caf812b37b87c82b055aa
|
|
BLAKE2b-256 checksum How to use checksums |
dec7d22e91ced6b77dfcca7412adae409174c661149dacff2753b9a8c8e57037
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.0 CPython/3.8.1
|
Release files / corona_chan_gob_mx-1.0.0-py2.py3-none-any.whl
| Download URL | corona_chan_gob_mx-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
fb651c75a273c7d3a205b55ab4b8eaf345a7bc5c9d3467f47d84301e6f3d7855
|
|
BLAKE2b-256 checksum How to use checksums |
56a697dd2d9224640d8566f0ccfe260de3ed831cc92ec005acf83518434f5f06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.0 CPython/3.8.1
|
Security for corona-chan-gob-mx 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.