Profilo di Joanna

Nome Joanna
Indirizzo email n/a
Messaggi2
  • Implementing Real-Time WebSocket Chat Application with Python and Flask-SocketIO
    Forum >> Programmazione Python >> Web e Reti
    Hello
    I am working on developing a real-time chat application using Python. The backend is built with Flask & I am using Flask-SocketIO for WebSocket communication. While the basic functionality works (eg, connecting clients and exchanging messages), I am facing challenges with:
    Handling multiple rooms dynamically.Ensuring message delivery reliability when clients reconnect.Optimizing performance for a large number of simultaneous users.Additionally; I am looking for guidance on integrating authentication for users joining specific chat rooms & securely managing user session data. I have referred https://www.python.it/forum/show/10/web-e-reti/ guide but still need advice . I am also exploring the integration of mlops pipelines to continuously deploy and update machine learning models for real-time message analysis, and would appreciate guidance on optimizing this workflow within the Flask-SocketIO framework.
    I also need tips on debugging common issues with WebSocket connections; such as unexpected disconnects / message loss. :question:
    Are there any alternative libraries or tools that would better suit a project of this scale? :angel:


    Sample code snippets / resources would be greatly appreciated!


    Thank you! :)
  • Re: Web scraping
    Forum >> Programmazione Python >> Web e Reti
    Hi!
    For static sites , use Scrapy:
    Install:pip install scrapyWrite a spider to extract text ( response.css('p::text')) and images ( response.css('img::attr(src)')).For dynamic sites , use Selenium:
    Install:pip install seleniumUse a browser driver to load the page, then extract text ( element.text) and images ( img.get_attribute('src')).Choose Scrapy for speed and Selenium for handling JavaScript.


    Thank you :)