Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e529328

Browse files
print function improved
1 parent 29e816f commit e529328

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎Link-Preview/linkPreview.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,8 @@ def getImage(soup, url):
7979

8080

8181
def printData(data):
82-
print("\nTitle : ", data["title"])
83-
print("Description : ", data["description"])
84-
print("URL : ", data["url"])
85-
print("Image link : ", data["image"])
82+
for item in data.items():
83+
print(f'{item[0].capitalize()}: {item[1]}')
8684

8785

8886
# start

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /