8000 GitHub - shafiahmed/openwebtext: Open clone of OpenAI's unreleased WebText dataset scraper. This version uses pushshift.io files instead of the API for speed. · GitHub
[go: up one dir, main page]

Skip to content

About

Open clone of OpenAI's unreleased WebText dataset scraper. This version uses pushshift.io files instead of the API for speed.

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Repository files navigation

OpenWebText

Open clone of OpenAI's unreleased WebText dataset scraper (started via this reddit post). It mines URLs from pre-downloaded (monthly) pushshift.io submission dumps instead of the API for speed.

Currently, only the 3+ karma links (30 million from 2006-2018 posts) are available for download here (2GB uncompressed down from the approximately 150GB total set of compressed submissions), but the scraped content will be posted very soon. The URLs are already filtered to exclude audio/video/nsfw/etc.

Original OpenAI project links:

An alternative scraper based on the pushshift.io API can be found here

Dependencies

pip install tldextract

To Scrape URLs Yourself

Pushshift dumps must be downloaded from here (auto-downloader to be added soon). Two examples are included in the repo in the "pushshift_dumps" folder. Then, extract good URLs using:

python extract_urls.py --single_file RS_v2_2005-06.xz

To process multiple pushshift files, specify year ranges:

python extract_urls.py --year_start 2016 --year_end 2018

To change the karma threshold:

python extract_urls.py --single_file RS_v2_2005-06.xz --min_karma 4

About

Open clone of OpenAI's unreleased WebText dataset scraper. This version uses pushshift.io files instead of the API for speed.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0