Skip to content

Commit

Permalink
Update: cambios varios
Browse files Browse the repository at this point in the history
  • Loading branch information
ezequiellagos committed Dec 24, 2021
1 parent 6796ae6 commit d0dc8d9
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 5 deletions.
16 changes: 16 additions & 0 deletions core/static/img/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions core/static/img/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion news/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class NoticiaAdmin(admin.ModelAdmin):
readonly_fields = ('created', 'updated', 'id_noticia', 'contador_visitas')
list_display = ('titulo', 'fecha', 'get_alias', 'categoria', 'contador_visitas')
ordering = ('-fecha', 'id_universidad', 'categoria', 'contador_visitas')
search_fields = ('titulo', 'categoria', 'fecha')
search_fields = ('titulo', 'categoria', 'fecha', 'id_noticia')
date_hierarchy = 'fecha'
list_filter = ('id_universidad__alias', 'categoria', 'id_universidad__region')

Expand Down
10 changes: 6 additions & 4 deletions scraper/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ def scraper(request):
# unap() # Funcionando
#ua() # Funcionando

# uoh() No se pudo scrapear
# uoh() #No se pudo scrapear - Página hecha con angular

# ucm() # Funcionando

# ufro() # Funcionando
uct() # Funciona con angular, usar selenium
ufro() # Funcionando
# uct() # Funcionando - detalles de rendimiento
# uach() # Funcionando
# uaysen() #Funcionando
# umag() # Funcionando - Revisar la bajada
Expand Down Expand Up @@ -758,9 +758,11 @@ def userena():
# Universidad de O'Higgins
def uoh():
# https://www.uoh.cl/
# https://www.uoh.cl/#noticias-y-eventos
logging.debug('Lanzado')

universidad = Universidad.objects.get(alias='UOH')
url = 'https://www.uoh.cl/#noticias-y-eventos'

# universidad = Universidad.objects.get(alias='UOH')
# contents = urllib.request.urlopen("https://www.uoh.cl/#noticias-y-eventos").read()
logging.debug('Deteniendo')
Expand Down

0 comments on commit d0dc8d9

Please sign in to comment.