Python 3.5.2 web-scraping - list index out of range
<p>I am new web scraping and trying to scrap all the contents of Restaurant's Details Form so that I can proceed my further scraping.</p>

<pre><code>import requests
from bs4 import BeautifulSoup
import urllib

url = "https://www.foodpanda.in/restaurants"
r=requests.get(url)
soup=BeautifulSoup(r.content,"html.parser")
print(soup.find_all("Section",class_="js-infscroll-load-more-here")[0])
</code></pre>

<p>html has no notion of uppercase tag and regardless even in the source itself it is <em>section</em> not <em>Section</em> with a lowercase s:</p>

<pre><code>section = soup.find_all("section",class_="js-infscroll-load-more-here")[0]
</code></pre>

<p>Since there is only one you can also use find:</p>

<pre><code> section = soup.find("section",class_="js-infscroll-load-more-here")
</code></pre>

<p>Both of which will find what you are looking for.</p>

python web-scraping beautifulsoup