Skip to content

Instantly share code, notes, and snippets.

@kehanlu
Created June 10, 2018 10:19
Show Gist options
  • Select an option

  • Save kehanlu/228a095cf18a5d6c9a812589e2233161 to your computer and use it in GitHub Desktop.

Select an option

Save kehanlu/228a095cf18a5d6c9a812589e2233161 to your computer and use it in GitHub Desktop.
import requests
from bs4 import BeautifulSoup
html = requests.get('http://clubs.ntust.edu.tw/Introduction/').text
soup = BeautifulSoup(html,'html.parser')
club_list = list()
for td in soup.find_all('td'):
club_list.append(td.text)
print(club_list)
@kehanlu
Copy link
Author

kehanlu commented Jun 10, 2018

image

2018-06-10 11 56 09

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment