Code of first example
This commit is contained in:
parent
a99412927b
commit
71aea9b705
2 changed files with 14 additions and 0 deletions
8
code/pyconus2024-tutorials-requests.py
Normal file
8
code/pyconus2024-tutorials-requests.py
Normal 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
6
code/requirements
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
requests
|
||||||
|
scrapy
|
||||||
|
scrapy-playwright
|
||||||
|
spidermon
|
||||||
|
ipython
|
||||||
|
ipdb
|
Loading…
Add table
Add a link
Reference in a new issue