Skip to content

Tag: html

Nested Dict to Table in Jinja2

I am scratching my head trying to correctly format a table from a nested dict in Jinja2, but having no luck. The dict is something like this: And I want the table to look like: The closest I have come is: But this doesn’t work. I am having trouble assigning the k1 variable without also having to extend …

How to scrape the text from this data?

I want to get the data regarding the information regarding “images” subsection. This is the code that I have written until now. However, I could not move forward. Could anybody please help? Answer You are on the right track, you just need to further dissect the information from that tag, to get wh…

Get the desired table from the site

There is a link to a site with a schedule. On the page there are 3 elements <select>: Institute (faculty), course, group. How to get the desired table through Requests? I tried Post and Get, unsuccessfully. Maybe Requests will not help here at all, and it is better to try Selenium? Answer You can use Be…