This library aims to obtain information from the sites of Cuban news.
Project description
CubaCrawler
Esta biblioteca apunta a obtener información de los sitios de noticias cubanas (Ahora mismo solo funcionan Cubadebate y Granma).
Como se usa
from CubaCrawler import Crawler
data = Crawler()
data.request("http://www.cubadebate.cu/noticias/2018/09/26/fundada-la-primera-empresa-biotecnologica-cubano-estadounidense-innovative-immunotherapy-alliance-sa/#.W6uvSBQpDeM")
print(data.text)
print(data.comment)
En caso de tener que pasar por un proxy se puede usar de la siguiente manera
from CubaCrawler import Crawler
config = {
"proxy": "http://user:password@proxy.host:port"
}
data = Crawler(config)
data.request("http://www.cubadebate.cu/noticias/2018/09/26/fundada-la-primera-empresa-biotecnologica-cubano-estadounidense-innovative-immunotherapy-alliance-sa/#.W6uvSBQpDeM")
print(data.text)
print(data.comment)
O, se pude llamar explicitamente a un Scrapper
from CubaCrawler import Cubadebate
url = "http://www.cubadebate.cu/noticias/2018/09/26/fundada-la-primera-empresa-biotecnologica-cubano-estadounidense-innovative-immunotherapy-alliance-sa/#.W6uvSBQpDeM"
cubadebate = Cubadebate(url)
print(cubadebate.text)
print(cubadebate.comment)
Esta biblioteca es desarrollada por GIA (Grupo de Inteligencia Artificial), cualquier contribución o referencia es agradecida.
thanks,
Frank Sadan Naranjo Noda fsadannn@gmail.com
Hian Cañizares Díaz hiancdtrsnm@gmail.com
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
CubaCrawler-1.0.0.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for CubaCrawler-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebbfc7d6c263d8609f2a4f53fb63f0ad0ba21fbe724e4e8ffddfb80dd7b9e473 |
|
MD5 | b7330724b909397cd9ceeae7fb434833 |
|
BLAKE2b-256 | 1b5e587bedd6f0826c0a385c408381a9effe9b1f28f6e83220f8cb061814d9e3 |