-
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
Open
GigiHB
wants to merge
2
commits into
main
Choose a base branch
from
nueva_branch
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
PR #2
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
S C:\Users\gisel\desktop\challenge_1> git add challenge1.py | ||
warning: in the working copy of 'challenge1.py', LF will be replaced by CRLF the next time Git touches it | ||
PS C:\Users\gisel\desktop\challenge_1> git status | ||
On branch cambios_en_read_me | ||
Changes to be committed: | ||
(use "git restore --staged <file>..." to unstage) | ||
new file: challenge1.py | ||
|
||
Changes not staged for commit: | ||
(use "git add <file>..." to update what will be committed) | ||
(use "git restore <file>..." to discard changes in working directory) | ||
modified: README.md | ||
|
||
PS C:\Users\gisel\desktop\challenge_1> git commit m- "cambios en readme y agregar archivo en nueva branch" | ||
error: pathspec 'm-' did not match any file(s) known to git | ||
error: pathspec 'cambios en readme y agregar archivo en nueva branch' did not match any file(s) known to git | ||
PS C:\Users\gisel\desktop\challenge_1> git commit -m "cambios en readme y archivo nuevo" | ||
[cambios_en_read_me 80695c0] cambios en readme y archivo nuevo | ||
1 file changed, 20 insertions(+) | ||
create mode 100644 challenge1.py | ||
PS C:\Users\gisel\desktop\challenge_1> git push origin cambios_en_read_me | ||
Enumerating objects: 4, done. | ||
Counting objects: 100% (4/4), done. | ||
Delta compression using up to 16 threads | ||
Compressing objects: 100% (3/3), done. | ||
Writing objects: 100% (3/3), 536 bytes | 268.00 KiB/s, done. | ||
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0) | ||
To https://github.com/mundo-python/challenge_1 | ||
22acf23..80695c0 cambios_en_read_me -> cambios_en_read_me | ||
PS C:\Users\gisel\desktop\challenge_1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import requests | ||
import feedparser | ||
import json | ||
|
||
url = f'https://www.theverge.com/rss/index.xml' | ||
r= requests.get(url) | ||
|
||
if r.status_code != 200: | ||
print(f"error with status code {r.status_code}") | ||
|
||
#los primeros 10 items | ||
|
||
feed = feedparser.parse(url) | ||
|
||
items = feed.entries[:10] | ||
|
||
for i, item in enumerate(items, start=1): | ||
title = item.title | ||
pub_date = item.published | ||
link = item.link | ||
|
||
print(f"{i}. Title: {title}") | ||
print(f"Date: {pub_date}") | ||
print(f"Link: {link}") | ||
|
||
#Guardar un archivo JSON | ||
data = [] | ||
for item in items: | ||
lista = { | ||
"title": item.title, | ||
"published": item.published, | ||
"link": item.link | ||
} | ||
data.append(lista) | ||
|
||
|
||
with open("10items.json", "w", encoding="utf-8") as f: | ||
json.dump(data, f, ensure_ascii=False, indent=4) | ||
|
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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