Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:07

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'))