Jump to content
  1. Behlur_Olderys

    A, dobra, już znalazłem - heavens above:

     

    URL = "https://www.heavens-above.com/whattime.aspx"
    r = requests.get(url=URL)
    data = r.content
    
    for line in data.splitlines():
        line = line.decode("utf-8")
        tag = '<span id="ctl00_cph1_lblGST">'
        if tag in line:
            begin = line.find(tag) + len(tag)
            return line[begin:line.find('<', begin)]

    Jakby ktoś chciał :)


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.