从给定日期检索imgur的病毒帖子(可以追溯到几年前)。
imgur-scraper的Python项目详细描述
imgur刮刀
从特定日期检索imgur的病毒帖子。不需要身份验证。使用他们的前端api实现。
用法
>>> fromimgur_scraperimportget_viral_posts_from>>> forpostinget_viral_posts_from(date="31/12/2015"):>>> print(post)The most viral images from Wednesday, Dec 31 2015 { 'title': 'Tire went flat overnight and decided to have a little fun', 'url': 'https://imgur.com/gallery/SIQgS', 'points': '15,893', 'tags': 'funny' } … prints all 500 of them
安装
pip install imgur-scraper
python 3.6是必需的