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

Categories

0 votes
1.1k 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 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...