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
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
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
scrapwiki-0.0.2.tar.gz
(2.8 kB
view details)
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
892860979583e4e363e3367f3e06358b7d30d613ffd88d567c6baa8d6ffc5f79
|
|
| MD5 |
1bb0cbdae1b7d2ce5bf02b506f038ee1
|
|
| BLAKE2b-256 |
c7da157286a3186f66ae0e304ebd473b86123d3629349efd1782723dceb18634
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f86a67684bd100275637ece92c24d745049cd997c7a5910f9cd222490286f58
|
|
| MD5 |
aa0163a393e5d4c642ba629981c723bd
|
|
| BLAKE2b-256 |
89eeb8a0bfcf7509183e55eb491631bf900e82c3745c3634f3ab62cf9e9795bb
|