php - python scrapy 采集百度贴吧入库mysql后。入库数据时间上是混乱的,有什么办法可以按百度贴吧发贴时间入库不?
阿神
阿神 2017-05-16 13:05:03
0
2
398

python scrapy 采集百度贴吧入库mysql后。入库数据是混乱的,有什么办法可以按百度贴吧发贴时间入库不?

如图:

后面的这一列时间。是我采集的百度贴吧楼主发贴的时间。入库后发现这个时间好混乱。有今天的,昨天的。上个月的。。。。

如果想把百度贴吧发贴的时间顺序入库。

请问实现这个需要什么思路?

阿神
阿神

闭关修行中......

reply all(2)
phpcn_u1582

Is there no way? Unless you cache all the captured unordered data, sort it and then write it into the database, but the database already has the ability to retrieve data. Why is the poster obsessed with the writing order? order by

我想大声告诉你

Convert the time value from string to time value and sort it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!