Code of first example

This commit is contained in:
Renne Rocha 2024-05-02 19:25:15 -03:00
parent a99412927b
commit 71aea9b705
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,8 @@
import requests
from parsel import Selector
response = requests.get('https://us.pycon.org/2024/schedule/tutorials/')
sel = Selector(text=response.body)
for tutorial in sel.css('.calendar a::text').getall():
print(tutorial)

6
code/requirements Normal file
View file

@ -0,0 +1,6 @@
requests
scrapy
scrapy-playwright
spidermon
ipython
ipdb