I know this is a header issue because if I take the header out of my code then the html spits out that I am a bot but I can't figure out how to get around this issue even when I add headers. What advice can you give?
import requests
from bs4 import BeautifulSoup
#Get the different pages to begin scraping data from
url = "http://www.manta.com/mb_41_ALL_19/louisiana"
headers = { 'Origin':'http://www.manta.com',
'Referer':'http://www.manta.com/mb_41_ALL_19/louisiana',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36'
, 'Accept-Language':'en-US,en;q=0.8'
,'Content-Type':'text/html; charset=utf-8', 'Host':None,}
newurl = requests.get(url, headers=headers)
soup = BeautifulSoup(newurl.text, "html.parser")
print(soup)