def test_crawl_mult_pic_illust(self): parse_pixiv( "https://www.pixiv.net/member_illust.php?mode=medium&illust_id=68686165" ) assert os.path.getsize("down/村カルキ/色がケンカしない方法/1.jpg") > 20000 assert os.path.getsize("down/村カルキ/色がケンカしない方法/2.jpg") > 20000 assert os.path.getsize("down/村カルキ/色がケンカしない方法/3.jpg") > 20000
def test_crawl_ugoira(self): config.remux_ugoira = False parse_pixiv( "https://www.pixiv.net/member_illust.php?mode=medium&illust_id=44298467" ) assert os.path.getsize( "down/pixiv事務局/うごイラはじめました/うごイラはじめました.zip") > 20000
def test_crawl_search_page(self): # inject filter function def filter_url(url): try: p = int(url.getquerydict()['p'][0]) return p == 5 except KeyError: return True imgfilter.filter_url = filter_url parse_pixiv( "https://www.pixiv.net/search.php?word=test&order=date_d&p=5") assert len(get_output_info()) >= 20
def test_crawl_author_page(self): # inject filter function def filter_url(url): try: p = int(url.getquerydict()['p'][0]) return p == 5 except KeyError: return True imgfilter.filter_url = filter_url parse_pixiv( "https://www.pixiv.net/member_illust.php?id=811927&type=all&p=5") assert len(get_output_info()) >= 20
def test_crawl_showcase(self): parse_pixiv("https://www.pixiv.net/showcase/a/3517/") assert os.path.getsize("down/アガハリ/徹はんと緒花はん/1.jpg") > 20000 assert len(get_output_info()) > 5
def test_crawl_one_pic_illust(self): parse_pixiv( "https://www.pixiv.net/member_illust.php?mode=medium&illust_id=59259626" ) assert os.path.getsize("down/ツバサ/『 』.jpg") > 20000