-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
keep fake User-Agent header for all requests
Looks like some PRONOTE instances actively block clients that have a weird User-Agent header. It should be fine to send it on all requests. The header can be changed using: import pronotepy.pronoteAPI pronotepy.pronoteAPI.HEADERS = { "User-agent": "...", ... }
- Loading branch information
Showing
1 changed file
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters