Code of second example
This commit is contained in:
parent
71aea9b705
commit
2764cc5989
1 changed files with 12 additions and 0 deletions
12
code/pyconus2024.py
Normal file
12
code/pyconus2024.py
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
import scrapy
|
||||||
|
|
||||||
|
class PyConUS2024Spider(scrapy.Spider):
|
||||||
|
name = "pyconus"
|
||||||
|
|
||||||
|
start_urls = [
|
||||||
|
'https://us.pycon.org/2024/schedule/tutorials/',
|
||||||
|
]
|
||||||
|
|
||||||
|
def parse(self, response):
|
||||||
|
for tutorial in response.css('.calendar a::text').getall():
|
||||||
|
yield {"title": tutorial}
|
Loading…
Add table
Add a link
Reference in a new issue