The program does not show it completely when visiting the site, writes that the list is not expanded. How to reveal them?

Viewed 46
  • The program outputs:[<div class="_3WOb8 __MatchGamesBody"><div class="_2sPLb _2Srf5 __CommonCollapseNotEntered"></div></div>, <div class="_3WOb8 __MatchGamesBody"><div class="_2sPLb _2Srf5 __CommonCollapseNotEntered"></div></div>]

  • Common Collapse Not Entered although when you enter the browser, they load immediately

     import time
     from bs4 import BeautifulSoup
     import requests
     from fake_user_agent.main import user_agent
    
     user = user_agent()
     header = {
     "user_agent": user
     }
    
     url = "https://scores24.live/ru/soccer/l-south-korea-k-leagueclassic/h2h"
    r = requests.get(url, headers=header)
    time.sleep(3)
    soup = BeautifulSoup(r.text, "lxml").find("div", id="root").findAll("div",
    class_="_3WOb8 __MatchGamesBody")
    print(soup)
    
    • How to reveal them?
0 Answers
Related