Building a small web corpus from a sitemap with Python
A Python script using Trafilatura to list the pages of a website, filter them by keyword and store their main text as a small corpus.
more ...A Python script using Trafilatura to list the pages of a website, filter them by keyword and store their main text as a small corpus.
more ...HTML to text conversion in Python with Trafilatura: html2txt keeps all the text of a page, while extract keeps only the main content.
more ...A few commands to gather texts from a website with Trafilatura, count frequent word sequences and generate new sentences with a Markov chain.
more ...Adam Kilgarriff’s “Googleology is bad science” revisited: the challenges of web corpora and how a matching corpus infrastructure can be built.
more ...An easy, modern way to gather web sources from search engines by adapting the BootCat method, with a discussion of its strengths and weaknesses.
more ...Download web pages in parallel with Python while respecting politeness rules, with a simple way to keep an eye on all constraints at once.
more ...Trafilatura’s HTML to text extraction got faster on its benchmark, thanks to changes in two dependencies, charset_normalizer and jusText.
more ...Why choose between R and Python? Install a Python scraper and use it for content discovery and text extraction straight from R.
more ...Find recent URLs on a website through its RSS and Atom feeds, then extract text, metadata and comments with Python.
more ...Use sitemaps to list a website’s pages and crawl them from the command line, with code snippets for link discovery and filtering.
more ...