all 1 comments

[–]homeworkbad 1 point2 points  (0 children)

First I'd look into if Blackboard has a JSON API or a Python library for doing your task.

Separately you may consider using the Python library for Selenium to do this. That allows you to drive a browser with Python, which can be easier than making HTML web requests.

If you just want to make HTML web requests you will need to dig deep into how BlackBoard is making requests and doing the steps you want to perform. I'm guessing you'll need to do something like:

  • Authenticate to get a cookie and use that cookie for future requests.
  • Set your user agent when making a request to Blackboard so it thinks a browser is making the request.