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

Converting BeautifulSoup objects to LXML trees in Python

How to convert a document parsed with BeautifulSoup into an LXML tree in Python, for example to pass it on to htmldate or to run XPath queries on it.

more ...

Converting HTML to text in Python

HTML to text conversion in Python with Trafilatura: html2txt keeps all the text of a page, while extract keeps only the main content.

more ...

Web scraping with R: Text and metadata extraction

Why choose between R and Python? Install a Python scraper and use it for content discovery and text extraction straight from R.

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

Evaluation of date extraction tools for Python

Python date extraction tools compared: htmldate performs best, runs faster and covers more small sites, blogs and non-English pages.

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

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