[상절티사] 상대적이며 절대적인 Tworld 사전의 개?발 "Python으로 주식 현재가 긁어오기!"

in python •  6 years ago 

0.tworld_door_5.jpeg

[상대적이며 절대적인 Tworld 사전]
Steemit의 화려한 비상을 꿈꾸는 @tworld 입니다.
대문을 만들어주신 cheongpyeongyull 작가님 너무 감사 드립니다!

stock_Crawling.py [test] 2019-02-15 17-51-41.png

Photo by tworld

입력값 받아서 URL 삽입 하기


import requests
from bs4 import BeautifulSoup

stockcode=input('stockcode=')

r=requests.get('https://finance.naver.com/item/main.nhn?code='+str(stockcode))
html=r.content
soup=BeautifulSoup(html, 'html.parser')
all=soup.find_all('dl', {"class" : "blind"})

print(all)


정말 개삽질 1시간 동안 하다가 ...
간단한 code 이지만 성공 ....

멈추지 말고 조금씩 앞으로 나아가기 위한 공부 !!!

#파이썬 #python #코딩 #coding

매일 항상 감사하면서 지내고 있는, @tworld 입니다

tworld_follow_2.gif


Sponsored ( Powered by dclick )
DCLICK: 광고 기능을 소개 합니다

지난주에 dclick 에서 Advertise 기능이 오픈 되었습니다. Advertise 메뉴 ...

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @tworld! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You published more than 1300 posts. Your next target is to reach 1400 posts.

Click here to view your Board
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Do not miss the last post from @steemitboard:

Valentine challenge - Love is in the air!

Support SteemitBoard's project! Vote for its witness and get one more award!