Skip to main content

Scrap Wikipedia page. Fetch title, paragraph or entire page html

Project description

scrapwiki

A python package for scrap Wikipedia page. Fetch title, paragraph or entire page html

pip install scrapwiki

Wikipedia page example

alt text https://en.wikipedia.org/wiki/Cat

Code example

from scrapwiki import read_url

page = read_url("https://en.wikipedia.org/wiki/Cat")
page.fetch()
print(page)
#WikipediaPage :	 Cat
#URL :	 https://en.wikipedia.org/wiki/Cat
print(page.paragraph)
#Return all paragraph <p></p>
print(page.soup)
#Return entire html

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

scrapwiki-0.0.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scrapwiki-0.0.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file scrapwiki-0.0.2.tar.gz.

File metadata

  • Download URL: scrapwiki-0.0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for scrapwiki-0.0.2.tar.gz
Algorithm Hash digest
SHA256 892860979583e4e363e3367f3e06358b7d30d613ffd88d567c6baa8d6ffc5f79
MD5 1bb0cbdae1b7d2ce5bf02b506f038ee1
BLAKE2b-256 c7da157286a3186f66ae0e304ebd473b86123d3629349efd1782723dceb18634

See more details on using hashes here.

File details

Details for the file scrapwiki-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: scrapwiki-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for scrapwiki-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5f86a67684bd100275637ece92c24d745049cd997c7a5910f9cd222490286f58
MD5 aa0163a393e5d4c642ba629981c723bd
BLAKE2b-256 89eeb8a0bfcf7509183e55eb491631bf900e82c3745c3634f3ab62cf9e9795bb

See more details on using hashes here.

Supported by

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