I\'m trying to code a scraper in Python to get some info from a page. Like the title of the offers that appear on this page: https://www.justdial.com/Panipat/Saree-Retai
def extract_source(url): headers = {"User-Agent":"Mozilla/5.0"} source=requests.get(url, headers=headers).text return source
out:
Saree Retailers in Panipat - Best Deals online - Justdial
Add User-Agent to your request, some site do not response to the request which dnose not has User-Agent
User-Agent