---
title: "Comment by Kay Ashaolu on \"How to Build a Web Scraper Using Python\" | Hashnode"
description: "Hey! Thanks so much for posting such a thorough article! I definitely learned from it. One quick note from the beginning of your search_cnn function that you ar"
url: "https://hashnode.com/posts/how-to-build-a-web-scraper-using-python/65943ad03e578edd1e43108d/comment/6597326428780949068e422f"
---

[Discussion](https://hashnode.com/posts/how-to-build-a-web-scraper-using-python/65943ad03e578edd1e43108d)

Comment [How to Build a Web Scraper Using Python](https://hashnode.com/posts/how-to-build-a-web-scraper-using-python/65943ad03e578edd1e43108d)

[Kay Ashaolu](https://hashnode.com/@kekoexchange)

[Jan 4, 2024](https://hashnode.com/posts/how-to-build-a-web-scraper-using-python/65943ad03e578edd1e43108d/comment/6597326428780949068e422f)

Hey! Thanks so much for posting such a thorough article! I definitely learned from it.

One quick note from the beginning of your search\_cnn function that you are building your URL from the "q" parameter.

While this definitely works, you may run into some issues if your search term had any special characters in it (like "&") in it. It's always good to use a library to deal with URLs due to all of these special rules.

The Python Standard Library has a function urllib.parse.unparse that enables you to pass a tuple and generate a URL safely. This Stackoverflow answer gives more details: stackoverflow.com/a/15799706

Thanks for sharing and keep on keeping on!

[Sirus Salari](https://hashnode.com/@ScrappedScript)

[Jan 5, 2024](https://hashnode.com/posts/how-to-build-a-web-scraper-using-python/65943ad03e578edd1e43108d/comment/6597326428780949068e422f#reply-65977f3528780949068ff7a1)

Thank you! I had no idea this was even a thing; I'll definitely look into it!
