1

I'm a french student and my high school have a website call Pronote use for write homework, if I'm present, etc... The problem: the site is often down, and it's impossible to recover the homework.

So, I wan't to create a Python script witch save sometimes a screenshot of the website. But he's coded in JavaScript and when I use python urllib2, Pronote return "Please use Google Chrome or Mozilla Firefox...". So if you know how to do it, without open a windows, thanks for you're answer.

( I use Python 2.7, Windows 10 (x64), and I know the Pronote IP. )

Aran-Fey
  • 39,665
  • 11
  • 104
  • 149
  • I don't understand why you need urllib to take a screenshot. Since you're actively using the website anyway, your script just needs to take screenshots regularly. – Aran-Fey Aug 12 '18 at 16:45
  • But really, taking screenshots of code is a horrible solution for that problem. Your school needs to do something about that problem. – Aran-Fey Aug 12 '18 at 16:46
  • It's just for have a copy of the website when he's work, so my solution is to take a screenshot of the website, but a window will popup, and I use my PC for playing, so this is a bit embarrasing, or I can take a copy of the website code, but urllib don't work. – RλPHλΣʟ Aug 12 '18 at 16:49
  • Pronote isn't only for my school, this is a universal tools for many of french school ( and probably more ), so it's just impossible to change the system of the tools, and there is no API, obsviously. – RλPHλΣʟ Aug 12 '18 at 16:51
  • Sounds like you need to change the user-agent: https://stackoverflow.com/questions/24226781/changing-user-agent-in-python-3-for-urrlib-request-urlopen – Patrick Haugh Aug 12 '18 at 21:29

0 Answers0