To check if a website allows web scraping or not you can use status_code as follows:
from bs4 import BeautifulSoup
r=requests.get(" ENTER URL OF YOUR CHOICE")
The output to this should be 200. Anything other than 200 means that the website your trying to scrape either does not allow web scraping or allows partially.