Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:58:28

0001 #!/usr/bin/env python3
0002 import pycurl
0003 from bs4 import BeautifulSoup
0004 from io import BytesIO
0005 buf = BytesIO()
0006 c = pycurl.Curl()
0007 c.setopt(c.URL, 'https://cmssdt.cern.ch/SDT/')
0008 c.setopt(c.WRITEDATA, buf)
0009 c.perform()
0010 c.close()
0011 html = BeautifulSoup(buf.getvalue(), 'html.parser')
0012 print(html.find('script'))