Bits of Language: corpus linguistics, NLP and text analytics
  • Corpus Linguistics
  • Tutorials
  • Text Complexity

How to make language detection with langid.py faster

Using py3langid, a modernized fork of the popular langid.py, as an example of how to maintain and speed up a Python package for language detection.

more ...

How to download web pages in parallel and follow politeness rules in Python

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 ...

Web scraping with Trafilatura just got faster

Trafilatura’s HTML to text extraction got faster on its benchmark, thanks to changes in two dependencies, charset_normalizer and jusText.

more ...

Using RSS and Atom feeds to collect web pages with Python

Find recent URLs on a website through its RSS and Atom feeds, then extract text, metadata and comments with Python.

more ...

A simple multilingual lemmatizer for Python

Simplemma is a simple multilingual lemmatizer for Python: it groups the inflected forms of a word under their dictionary form.

more ...

Using sitemaps to crawl websites on the command-line

Use sitemaps to list a website’s pages and crawl them from the command line, with code snippets for link discovery and filtering.

more ...

Filtering links to gather texts on the web

Courlan cleans, filters, normalizes and samples URLs on the command line or in Python, to focus web crawls on spam-free text in a target language.

more ...

Evaluating scraping and text extraction tools for Python

Python packages for web scraping and text extraction compared on robustness and speed, to find which tool best separates main text from boilerplate.

more ...

Validating TEI-XML documents with Python

Two ways to validate XML documents against the Text Encoding Initiative guidelines in Python: a quick shortcut or each step in detail.

more ...

Extracting the main text content from web pages using Python

Trafilatura downloads web pages and extracts their main text in Python. It also helps navigate websites and find links in sitemaps and feeds.

more ...

About Adrien Barbaresi
Research Scientist and Data Engineer specializing in Natural Language Processing and Artificial Intelligence

  • Social

    • LinkedIn
    • GitHub
  • Tags

    • code snippet
    • corpus linguistics
    • data mining
    • python
    • readability assessment
    • research
    • text cleaning
    • trafilatura
    • web corpus construction
    • web crawling
  • Links

    • Homepage
    • Scientific Publications

© 2026 Adrien Barbaresi · Powered by pelican-bootstrap3, Pelican, Bootstrap

Creative Commons License Content licensed under a Creative Commons Attribution-ShareAlike 4.0 International License, except where indicated otherwise.

Back to top