Relative Content

Tag Archive for pythonhtml

How to extract username from this HTML structure?

user_body = user_section.find(class_=’media-body’) username_span = user_body.find(‘div’, class_=’media-user-name’).find(‘span’, class_=’pseudo-a’) if user_body else None username = username_span.get_text(strip=True) if username_span else “N/A” I have tried to extract username from this HTML structure: <a href=”https://funpay.com/uk/lots/offer?id=ok” class=”tc-item” data-online=”1″ data-f-type=”nitro basic” data-f-time=”1 month” data-f-method=”code activation”> <div class=”tc-desc”> <div class=”tc-desc-text”>⚡Discord Nitro basic⚡, Nitro Basic, 1 month, code activation</div> </div> <div class=”tc-user”> <div […]

Using SSE in Flask

I’m using Flask to develop a web app. I have a /stream route in my python code, an index.html file, and a stream_page.html that triggers the stream route.

Turning my Python Steam Game API into a Website

So, I’m doing a project where, using the Steam API, I’m making a game searcher type site.
The user would search for a game or use keywords, and it would find the game for them.
How should i go ahead to making it.