medium-articles / README.md
fabiochiu's picture
Update README.md
979af3b
---
license: mit
---
# Data source
This data has been collected through a standard scraping process from the [Medium website](https://medium.com/), looking for published articles.
# Data description
Each row in the data is a different article published on Medium. For each article, you have the following features:
- **title** *[string]*: The title of the article.
- **text** *[string]*: The text content of the article.
- **url** *[string]*: The URL associated to the article.
- **authors** *[list of strings]*: The article authors.
- **timestamp** *[string]*: The publication datetime of the article.
- **tags** *[list of strings]*: List of tags associated to the article.
# Data analysis
You can find a very quick data analysis in this [notebook](https://www.kaggle.com/code/fabiochiusano/medium-articles-simple-data-analysis).
# What can I do with this data?
- A multilabel classification model that assigns tags to articles.
- A seq2seq model that generates article titles.
- Text analysis.
- Finetune text generation models on the general domain of Medium, or on specific domains by filtering articles by the appropriate tags.
# Collection methodology
Scraping has been done with Python and the requests library. Starting from a random article on Medium, the next articles to scrape are selected by visiting:
1. The author archive pages.
2. The publication archive pages (if present).
3. The tags archives (if present).
The article HTML pages have been parsed with the [newspaper Python library](https://github.com/codelucas/newspaper).
Published articles have been filtered for English articles only, using the Python [langdetect library](https://pypi.org/project/langdetect/).
As a consequence of the collection methodology, the scraped articles are coming from a not uniform publication date distribution. This means that there are articles published in 2016 and in 2022, but the number of articles in this dataset published in 2016 is not the same as the number of articles published in 2022. In particular, there is a strong prevalence of articles published in 2020. Have a look at the [accompanying notebook](https://www.kaggle.com/code/fabiochiusano/medium-articles-simple-data-analysis) to see the distribution of the publication dates.