Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recopilar información de carrera - Calendario de charlas, becas, fondos y actividades extracurriculares #10

Open
FelipeGuicharrousse opened this issue Jul 23, 2020 · 2 comments
Assignees

Comments

@FelipeGuicharrousse
Copy link

FelipeGuicharrousse commented Jul 23, 2020

Busqueda de informacion de carrera

@FelipeGuicharrousse FelipeGuicharrousse self-assigned this Jul 23, 2020
@lucasug lucasug self-assigned this Jul 23, 2020
@Seba-hern Seba-hern self-assigned this Jul 24, 2020
@FelipeGuicharrousse
Copy link
Author

FelipeGuicharrousse commented Aug 18, 2020

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

@FelipeGuicharrousse
Copy link
Author

FelipeGuicharrousse commented Aug 19, 2020

`

Importar las librerias beautifulsoup4 y requests

from bs4 import BeautifulSoup
import requests

Deportes. Busca los diversos deportes que hay.

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.find_all('h2', class_='category-title')
deportes = list()

for i in dep:
deportes.append(i.text)

Extension con el medio.

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.find_all('h2', class_='category-title')
extension = list()

for i in ex:
extension.append(i.text)

Becas. Busca solo los nombres de las becas, no encuentra en que consisten.

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)

Charlas. Crea una lista de tuplas con las diferentes charlas que hay, además de un archivo de texto .csv para analizar mejor los datos.

url = 'https://eventos.usm.cl/'
page = requests.get(url)
soup = BeautifulSoup(page.content, 'html.parser')

fe = soup.find_all(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')`

@LaTortugaR LaTortugaR assigned LaTortugaR and unassigned LaTortugaR Oct 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants