Need an example of work html



  • On the news site, I need to get an article and write it out. Every time, I take an early home ip and get a lot of information. But there's a mistake because it's not a JSON server, it's HTML. That's how to fix it and if you can try it.

    import json
    from urllib.request import urlopen
    from webbrowser import open_new
    

    url = 'http://fakty.ictv.ua/ru/index/read-news/id/1571335'
    data = urlopen(url).read().decode('utf8')
    data = json.loads(data)
    print(data)



  • Use HTML. There are many different things for the pit. Googles "python parse html" - choose what you like. Blessing, examples of them, too.

    It is possible to use recurrents if the site ' s marking does not allow for a specific puzzle rule.

    Just take into account that if your source changes the page, your crypt can break.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2