Skip to main content

This library aims to obtain information from the sites of Cuban news.

Project description

PyPI - License PyPI - Python Version PyPI Travis (.org) Codecov

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


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 details)

Uploaded Source

Built Distribution

CubaCrawler-1.0.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file CubaCrawler-1.0.0.tar.gz.

File metadata

  • Download URL: CubaCrawler-1.0.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for CubaCrawler-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b5c46ca3c717c259ae20f8281fe935b65fe1ad697d4b285757b2e67f97a79fa4
MD5 cbb44d2a4136cbd4def583ef2e2e45e2
BLAKE2b-256 50ef6c3f3359f1f7e164ed921e948447d6d5d2064caad19400a4f18747c1581a

See more details on using hashes here.

File details

Details for the file CubaCrawler-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: CubaCrawler-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for CubaCrawler-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ebbfc7d6c263d8609f2a4f53fb63f0ad0ba21fbe724e4e8ffddfb80dd7b9e473
MD5 b7330724b909397cd9ceeae7fb434833
BLAKE2b-256 1b5e587bedd6f0826c0a385c408381a9effe9b1f28f6e83220f8cb061814d9e3

See more details on using hashes here.

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