0

Topic : website scraping using bs4

Question : I need to extract ads url from the website. I extracted all the links from the website but, I can't find any ads link from that website which contains ads

My code :

from bs4 import BeautifulSoup
import requests

source = requests.get('https://www.premiumswat.me').text

soup = BeautifulSoup(source , 'lxml')

for link in soup.find_all('a' , href = True):
    print(link['href'])
Etf_Zan
  • 11
  • 6

0 Answers0