I decided to write a bot for work which will send me my daily schedule for the day. I'm still green in this case and I have a problem: when I connect a page with a schedule, the parser gives me a page without the table with the schedule itself, since it has not yet been generated.

Is there any way to wait for the generation of this table? For more info write in the comments, I will throw off everything you need.

Here is a piece of code:

import requests class Aquasoft(object): def schedule_parse(self): request_url = "http://aquasoft.dvfx.ru/" session = requests.Session() params = { "login": "login", # Изменено "password": "password" } auth_req = session.post(request_url, params) request_url = "http://aquasoft.dvfx.ru/views/customer_record.php" schedule_req = session.post(request_url) with open("test.html", "w", encoding="utf-8") as f: print(schedule_req.text, file=f) if __name__ == "__main__": test = Aquasoft() test.schedule_parse() 
  • one
    You need to intercept Ajax and parse - danilshik
  • Do not tell me some kind of guide, how to do it? - Antoxer
  • You need to enable the developer mode in the browser (better use Firefox, there is in Russian), open the page and see what ajax request comes when creating the table - danilshik
  • That is, I need to find the necessary .js file and send a request to it? I understand correctly? - Antoxer
  • one
    you need to find the url of the ajax request and make the same request, and then parse it - danilshik

0