Fix example code
This commit is contained in:
parent
2764cc5989
commit
d7fd3dd578
1 changed files with 1 additions and 1 deletions
|
@ -3,6 +3,6 @@ from parsel import Selector
|
||||||
|
|
||||||
response = requests.get('https://us.pycon.org/2024/schedule/tutorials/')
|
response = requests.get('https://us.pycon.org/2024/schedule/tutorials/')
|
||||||
|
|
||||||
sel = Selector(text=response.body)
|
sel = Selector(text=response.text)
|
||||||
for tutorial in sel.css('.calendar a::text').getall():
|
for tutorial in sel.css('.calendar a::text').getall():
|
||||||
print(tutorial)
|
print(tutorial)
|
Loading…
Add table
Add a link
Reference in a new issue