Beispiel #1
0
 def crawling_hust():
     # 抓取 UVALive
     oj_name = "Hust"
     root_url = "http://acm.hust.edu.cn/problem/list/1"
     OjSpider.runspider(oj_name=oj_name,
                        root_url=root_url,
                        page_to_craw=PAGE_TO_CRAW,
                        operation=FIRST_CRAW)
     pass
Beispiel #2
0
 def crawling_hdu():
     # 抓取 UVALive
     oj_name = "Hdu"
     root_url = "http://acm.hdu.edu.cn/listproblem.php?vol=1"
     OjSpider.runspider(oj_name=oj_name,
                        root_url=root_url,
                        page_to_craw=PAGE_TO_CRAW,
                        operation=FIRST_CRAW)
     pass
Beispiel #3
0
 def crawling_uvalive():
     # 抓取 UVALive
     oj_name = "UVALive"
     root_url = "https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8"
     OjSpider.runspider(oj_name=oj_name,
                        root_url=root_url,
                        page_to_craw=PAGE_TO_CRAW,
                        operation=FIRST_CRAW)
     pass
Beispiel #4
0
 def crawling_ural():
     # 抓取 UVALive
     oj_name = "Ural"
     root_url = "http://acm.timus.ru/problemset.aspx?space=1&page=all"
     OjSpider.runspider(oj_name=oj_name,
                        root_url=root_url,
                        page_to_craw=PAGE_TO_CRAW,
                        operation=FIRST_CRAW)
     pass
Beispiel #5
0
 def crawling_hysbz():
     # 抓取 Sgu
     oj_name = "Hysbz"
     root_url = "http://www.lydsy.com/JudgeOnline/problemset.php?page=1"
     OjSpider.runspider(oj_name=oj_name,
                        root_url=root_url,
                        page_to_craw=PAGE_TO_CRAW,
                        operation=FIRST_CRAW)
     pass
Beispiel #6
0
 def crawling_sgu():
     # 抓取 Sgu
     oj_name = "Sgu"
     root_url = "http://acm.sgu.ru/problemset.php?show_volumes"
     OjSpider.runspider(oj_name=oj_name,
                        root_url=root_url,
                        page_to_craw=PAGE_TO_CRAW,
                        operation=FIRST_CRAW)
     pass
Beispiel #7
0
 def crawling_poj():
     # 抓取 Poj
     oj_name = "Poj"
     root_url = "http://poj.org/problemlist"
     OjSpider.runspider(oj_name=oj_name,
                        root_url=root_url,
                        page_to_craw=PAGE_TO_CRAW,
                        operation=FIRST_CRAW)
     pass
Beispiel #8
0
 def crawling_codeforces():
     # 抓取 UVALive
     oj_name = "CodeForces"
     root_url = "http://codeforces.com/problemset/page/1"
     OjSpider.runspider(oj_name=oj_name,
                        root_url=root_url,
                        page_to_craw=PAGE_TO_CRAW,
                        operation=FIRST_CRAW)
     pass
Beispiel #9
0
 def crawling_zoj():
     # 抓取 Zoj
     oj_name = "Zoj"
     root_url = "http://acm.zju.edu.cn/onlinejudge/showProblemsets.do"
     # root_url = "http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1056"
     OjSpider.runspider(oj_name=oj_name,
                        root_url=root_url,
                        page_to_craw=PAGE_TO_CRAW,
                        operation=FIRST_CRAW)
     pass