Skip to main content

Wiker

library for wikipedia text dataset collection

Installation

pip install wiker

Quickstart

from wiker import Wiker

wk = Wiker(lang='uz', first_article_link="Turkiston")

wk.run(scrape_limit=50)

Another methods

from wiker import Wiker

wk = Wiker(lang='uz', first_article_link="Turkiston")

wk.reader() # read the pre_urls.txt file and return the result as a list
wk.read_url_count() # The number of all links that read the pre_urls.txt file
wk.extra_file_writer() # if the pre_urls.txt file is empty, the function writes first_article_link to the file
wk.scraper() # Get all articles from links in pre_urls.txt file
wk.text_cleaner() # clean up the html and other tags in the retrieved articles
wk.next_urls() # get links for further scraping
wk.dir_scanner() # scan the "data" folder to count files
wk.cleaned_text_writer(text_dict=wk.text_cleaner()) # 
wk.post_url_writer(url_list=wk.scraper().keys()) # writing the name of the saved articles to the file
wk.pre_url_writer(url_list=wk.next_urls()) # write names in next_urls to files for next process

Metadata

Release files for wiker 0.0.1

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

Source distribution (sdist)

Source distribution for wiker 0.0.1
File Size Uploaded
wiker-0.0.1.tar.gz 4.5 kB Details

Built distribution (wheel)

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

Total release size: 9.4 kB

Release files / wiker-0.0.1.tar.gz

Download URL wiker-0.0.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
97d9ae5df053d2bf8e3062a19c898535ce4908d12a4588f5bc8c54b96ac168aa
BLAKE2b-256 checksum
How to use checksums
787426c285aceac675e39aa5fbf0537b8848d926b91e774a6f6650f143107eb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release files / wiker-0.0.1-py3-none-any.whl

Download URL wiker-0.0.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd81dd51da506cc5b23cd14f42b2eab1c096bb679dc79402e6fa705cd9963110
BLAKE2b-256 checksum
How to use checksums
241c94cd5bb252b81a9e8a048fd850ab237cb757252014120624fea75e405e62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.0.1 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