How I Scrape and Search My Medium Articles by Keyword
Last Updated on January 3, 2025 by Editorial Team
Author(s): Ganesh Bajaj
Originally published on Towards AI.
This member-only story is on us. Upgrade to access all of Medium.
Photo by Martin Adams on UnsplashDisclaimer: This article is only for educational purposes. We do not encourage anyone to scrape websites, especially those web properties that may have terms and conditions against such actions.
As a writer on Medium, you may have experienced the frustration of not being able to search your own Medium articles for specific keywords. I am new to Medium and having published a number of articles, I found it difficult to search my own library.
Unlike other blogging platforms like Blogger, I dont see any built-in search feature for this. If youβve published many articles then finding that one piece youβre looking for feels like a needle in a haystack.
So I developed a simple python script to scrape the website and search it myself :). In this article, I will walk you through on how to use Python, Selenium, and BeautifulSoup to scrape your Medium profile and search for articles containing specific keywords. This solution is practical, relatively simple, and will save you a lot of time.
We will make use of the following Python libraries:
Selenium: To browse and scrape the HTML content from our Medium Profile.BeautifulSoup: To… Read the full blog for free on Medium.
Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming aΒ sponsor.
Published via Towards AI