-
Notifications
You must be signed in to change notification settings - Fork 0
PR #2
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
base: main
Are you sure you want to change the base?
PR #2
Conversation
@@ -0,0 +1,30 @@ | |||
S C:\Users\gisel\desktop\challenge_1> git add challenge1.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elimine este archivo
ch1.py
Outdated
|
||
#los primeros 10 items | ||
|
||
import feedparser |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
los imports siempre van al principio del archivo, nunca al final
ch1.py
Outdated
print(f"Link: {link}") | ||
|
||
#Guardar un archivo JSON | ||
import json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
los imports siempre van al principio del archivo, nunca al final
ch1.py
Outdated
if r.status_code == 200: | ||
xml_content = r.text | ||
print(xml_content) | ||
else: | ||
print("error") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aquí no ocupa imprimir el contenido de la pagina si está checando el status code.
if r.status_code == 200: | |
xml_content = r.text | |
print(xml_content) | |
else: | |
print("error") | |
if r.status_code != 200: | |
print(f"error with status code {r.status_code}") |
Muy bien 👍 |
A ver si ahora sí asuuu