Jan-14-2018, 04:15 PM
(This post was last modified: Jan-14-2018, 04:20 PM by digitalmatic7.)
1 2 3 4 5 6 7 8 9 10 11 12 |
from bs4 import BeautifulSoup import re import requests scrape = requests.get(url, headers = { "user-agent" : "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36" }) html = scrape.content soup = BeautifulSoup(html, 'html.parser' ) z = soup.find_all(text = re. compile (r "livefyre_comment_stream" , re.IGNORECASE)) print (z) |
If you open the URL manually and check the source code you can find "livefyre_comment_stream"
Can someone explain where I'm going wrong?
Solved.
1 |
id = re. compile |