OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to scrape the list of tickets from this website? [closed]

  • Thread starter Thread starter Ákos Bakonyi
  • Start date Start date
Á

Ákos Bakonyi

Guest
I would like to get the list of tickets in text form from this page: https://ticket-resale.paris2024.org/tickets/all/1/1/18263210

I tried the following Python script:

Code:
Import requests
from bs4 import BeautifulSoup

response = requests.get("https://ticket-resale.paris2024.org/tickets/all/1/1/18263210")

soup = BeautifulSoup(response.content, "html.parser")

text = soup.get_text()
print(text)

I get an error message saying:

Code:
('Connection aborted.', TimeoutError(10060))

Any idea why it doesn't work?
<p>I would like to get the list of tickets in text form from this page: <a href="https://ticket-resale.paris2024.org/tickets/all/1/1/18263210" rel="nofollow noreferrer">https://ticket-resale.paris2024.org/tickets/all/1/1/18263210</a></p>
<p>I tried the following Python script:</p>
<pre><code>Import requests
from bs4 import BeautifulSoup

response = requests.get("https://ticket-resale.paris2024.org/tickets/all/1/1/18263210")

soup = BeautifulSoup(response.content, "html.parser")

text = soup.get_text()
print(text)
</code></pre>
<p>I get an error message saying:</p>
<pre><code>('Connection aborted.', TimeoutError(10060))
</code></pre>
<p>Any idea why it doesn't work?</p>
Continue reading...
 

Latest posts

M
Replies
0
Views
1
Meliodas Dragon
M
Top