corona chan scraper for gob mx
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file corona_chan_gob_mx-1.0.0.tar.gz.
File metadata
- Download URL: corona_chan_gob_mx-1.0.0.tar.gz
- Upload date:
- Size: 13.7 MB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60ca496540e3f9a98d6b9fe64d8935aa12353eef442caf812b37b87c82b055aa
|
|
| MD5 |
d271c4ec157a3b115fe759a2f9024f97
|
|
| BLAKE2b-256 |
dec7d22e91ced6b77dfcca7412adae409174c661149dacff2753b9a8c8e57037
|
File details
Details for the file corona_chan_gob_mx-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: corona_chan_gob_mx-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb651c75a273c7d3a205b55ab4b8eaf345a7bc5c9d3467f47d84301e6f3d7855
|
|
| MD5 |
84b29551c20747c5ffa55cb02358fe29
|
|
| BLAKE2b-256 |
56a697dd2d9224640d8566f0ccfe260de3ed831cc92ec005acf83518434f5f06
|