我正在尝试从这个链接中提取日期和时间,即发表在的文章-
for link in soup.findAll('span'):
print(link)
这将给出从页面的所有跨度。
<li class="clearfix" id="newslist-2">
<a href="https://www.moneycontrol.com/news/world/europe-should-temporarily-ban-chinese-takeovers-germanys-weber-5
我在ipad应用程序中使用从github下载的ntp-ios框架来获取GTM时间,方法是使用以下代码
[NetworkClock sharedNetworkClock]; // // gather up the ntp servers ...
[NSDate networkDate]; // This will give the network date and time regardless of device date
如果设备时间是错误的,那么我也得到了正确的gmt时间。
但我的问题是,当应用程序转到后台时,我在设置中更改了设备时间。然后,如果我再次通过点击来激活应用程