Home python Get a link to Python

Get a link to Python

Author

Date

Category

https://www.cian.ru/sale/flat/230946309/In this announcement there is a photo. It is enough to get links to these photos. I did a post request, still gives None. Tell me what to do?


Answer 1, Authority 100%

import requests
From BS4 Import Beautifulsoup
For URL in List_URL:
   Response = Requests.get (URL)
   Soup = Beautifulsoup (Response.Text, Features = "HTML.PARSER")
   images = []
   FOR IMG IN SOUP.FINDALL ('IMG'):
     images.append (img.get ('src'))
   Print

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions