18 lines
No EOL
505 B
Python
18 lines
No EOL
505 B
Python
import scrapy
|
|
|
|
|
|
class EuroPython2023Spider(scrapy.Spider):
|
|
name = "europython"
|
|
|
|
start_urls = [
|
|
"https://ep2023.europython.eu/sessions",
|
|
"https://ep2023.europython.eu/tutorials",
|
|
]
|
|
|
|
def parse(self, response):
|
|
sessions = response.xpath("//div[contains(@class, 'mt-12')]")
|
|
for session in sessions:
|
|
yield {
|
|
"title": session.xpath("./h2/a/text()").get(),
|
|
"presenter": session.xpath("./p/a/text()").get(),
|
|
} |