html data scrapping in python
Question: I am getting the data in the html format. how to get the specific data from
that format. The complete html is coming in the post request of the django.
Now I have to fetch the data in the between the tables tags in html. Tried
beautifulSoup but is taking data from urls. Any possible way to get data
between the tags in python .

python version:2.7


Answer: beautiful soup and requests.

requests to get the data then beautiful soup to read from tags eg.

    
    
    from bs4 import BeautifulSoup
    import requests
    r = requests.get("https://www.google.com")
    soup = BeautifulSoup(r.text) 
    div_style = div.find('div')['style']
    

If the page is javascript based you may need to use selenium and webdriver
with the browser of your choice. If its css based you may need cssutils to
parse it.

