Profilo di
Joanna
| Nome | Joanna |
|---|---|
| Indirizzo email | n/a |
| Messaggi | 2 |
-
- 2024-12-12 07:37:26
- [SPAM] Implementing Real-Time WebSocket Chat Application with Python and Flask-SocketIO
- Forum >> Programmazione Python >> Web e Reti
- Spam, Spam, Spam, Spam… Lovely Spam! Wonderful Spam!
-
- 2024-12-12 07:22:06
- 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
