Answer the question
In order to leave comments, you need to log in
How to get content from html?
There is a downloaded html document. How to get a link from?
import requests
from bs4 import BeautifulSoup as bs<div> с набором <a class="some text" href= ... >
url = "https://wallscloud.net/wallpaper/nature/landscape/domik/RJ70"
r = requests.get(url)
print(r.status_code)
print(r.text)
soup = bs(r.text, "html.parser")
link = soup.find_all('a', class_='btn waves btn-block search_available_res starting_download waves-effect waves-light')
print(link)
#нужно получить ссылку кнопки
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question