Open FelipeGuicharrousse opened 4 years ago
https://usm.cl/admision/becas/ Informacion de becas https://www.usm.cl/admision/beneficios/ Beneficios estudiantiles de la universidad https://www.rree.usm.cl/beneficios/becas-y-creditos-usm/ Fondos solidarios https://eventos.usm.cl/ Charlas de la universidad Las actividades extracurriculares del DEFIDER: https://defider.usm.cl/campus-san-joaquin/areas-san-joaquin/extension-sanjoaquin/ Extension con el medio https://defider.usm.cl/campus-san-joaquin/areas-san-joaquin/deportes-sanjoaquin/ Deportes
`
from bs4 import BeautifulSoup import requests
url = 'https://defider.usm.cl/campus-san-joaquin/areas-san-joaquin/deportes-sanjoaquin/' page = requests.get(url) soup = BeautifulSoup(page.content, 'html.parser')
dep = soup.findall('h2', class='category-title') deportes = list()
for i in dep: deportes.append(i.text)
url = 'https://defider.usm.cl/campus-san-joaquin/areas-san-joaquin/extension-sanjoaquin/' page = requests.get(url) soup = BeautifulSoup(page.content, 'html.parser')
ex = soup.findall('h2', class='category-title') extension = list()
for i in ex: extension.append(i.text)
url = 'https://usm.cl/admision/becas/' page = requests.get(url) soup = BeautifulSoup(page.content, 'html.parser')
be = soup.find_all('h2') becas = list()
for i in be: becas.append(i.text)
url = 'https://eventos.usm.cl/' page = requests.get(url) soup = BeautifulSoup(page.content, 'html.parser')
fe = soup.findall(class='date') fecha = list()
for i in fe: fecha.append(i.text)
ch = soup.find_all('h3') charlas = list()
count = 0 for i in ch: if count >= 2: charlas.append(i.text) count += 1
del charlas[-1]
lista_final = list() for i in range(len(charlas)): lista_final.append((charlas[i], fecha[i]))
plantilla = '{};{}' archivo_de_texto = open('Charlas.csv', 'w') for i in range(len(charlas)): linea = plantilla.format(charlas[i], fecha[i]) archivo_de_texto.write(linea + '\n')`
Busqueda de informacion de carrera