Skip to main content

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

Metadata

Release files for scrapwiki 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scrapwiki 0.0.2
File Size Uploaded
scrapwiki-0.0.2.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scrapwiki 0.0.2
File Interpreter ABI Platform
scrapwiki-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.0 kB

Release files / scrapwiki-0.0.2.tar.gz

Download URL scrapwiki-0.0.2.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
892860979583e4e363e3367f3e06358b7d30d613ffd88d567c6baa8d6ffc5f79
BLAKE2b-256 checksum
How to use checksums
c7da157286a3186f66ae0e304ebd473b86123d3629349efd1782723dceb18634
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / scrapwiki-0.0.2-py3-none-any.whl

Download URL scrapwiki-0.0.2-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f86a67684bd100275637ece92c24d745049cd997c7a5910f9cd222490286f58
BLAKE2b-256 checksum
How to use checksums
89eeb8a0bfcf7509183e55eb491631bf900e82c3745c3634f3ab62cf9e9795bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page