3 advanced web scraping tips for python learners in 1 minute

The Girl
2 min readOct 28, 2022

--

Python language beginner here šŸ™‹šŸ½ā€ā™€ļøso I will be sharing 3 simple tips that helped to better do some web scraping.

To make money with web scraping requires that you have a number of techniques in your toolkit because some sites are more challenging to scrape than others.

IN this article, I will cover 3 tips that have contributed to increase my practice and understanding with web scrapingĀ andĀ allĀ itsĀ potential.

Tip 1: Proxies
Using a proxy enables you to make your request from a specific geographical region or device, which is valuable when scraping product data from online retailers, or when you have to scrape significant amounts of data from web sites
Rotate your IP address to avoid site limit scraping by checking your IP.

Tip 2: Overcoming CloudFlare Blocking
If you try to scrape a site and it seems impossible to get to the data, then most likely, your scraping activity has been impeded by Cloudflare.

Tip 3: Waiting
Sometimes it is simple enough to put a time.sleep(some seconds) in your code to decrease the load that you put on a site or to give your code the necessary time to find your data.
For slow sites, use WebDriverWait because you donā€™t know how quickly the site will respond.

And thatā€™s it! A simple digest a bit outside of what I usually write abut, but if it helped in my Python journey, I hope it also helps you!Ā ā˜ŗ

Liked this piece? Donā€™t forget to show me some love or leave me a comment with your favorite app! It motivates me and helps me reach other like-minded people. Thanks. šŸ¤—

--

--

The Girl

Making money online | Personal finance | AI | Programming | Machine Learning | Productivity tools & methods