Python Forum
I found some thing new that I am not sure about
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I found some thing new that I am not sure about
#3
Take also a look at Web-Scraping part-1
from bs4 import BeautifulSoup
import requests
import re

url = 'https://en.wikipedia.org/wiki/List_of_American_comedy_films'
url_get = requests.get(url)
soup = BeautifulSoup(url_get.content, 'lxml')
for link in soup.find_all('a', href=re.compile(r"/wiki/")):
   print(link)
Reply


Messages In This Thread
RE: I found some thing new that I am not sure about - by snippsat - Jul-04-2017, 05:27 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020