Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

get data from url using Beautifulsoup

I have a link. I need to get the data from the daily rewared timer which is just a 24hr countdown. I have some code from inspecting it in browser I will post to show what data I need. As I understand it I need to filter spans then look for classes but it is beyond my knowledge. Any help would be awesome. The data in this code would be the "3h 12m 29s" I just want to get and write that to file. can be saved locally.

<div class="panel-header packery-item mt-2 reset col-md-4" style="position: absolute; top: 516.313px; left: 0%; transition-property: opacity, transform; transition-duration: 0.4s; transition-delay: 0ms; transform: translate3d(0px, -0.0004px, 0px);"><h4 class="text-center header-panel">Daily Reward Timer Reset</h4><div class="list-group"><div class="list-group-item list-group-item-borderbottom" style="display: inline;"><span class="pull-left"><b>Reward Timer Reset in:</b></span><span class="badge align-middle badge-success pull-right"> 3h 12m 29s </span></div></div></div>
question from:https://stackoverflow.com/questions/65916509/get-data-from-url-using-beautifulsoup

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...