Commit b6e8876f authored by litaolemo's avatar litaolemo

update

parent f6df7c42
...@@ -399,6 +399,7 @@ class Crawler_toutiao(): ...@@ -399,6 +399,7 @@ class Crawler_toutiao():
if get_page.status_code != 200: if get_page.status_code != 200:
continue continue
page_dict = get_page.json() page_dict = get_page.json()
print(page_dict)
if page_dict['data']: if page_dict['data']:
for one_line in page_dict['data']: for one_line in page_dict['data']:
try: try:
...@@ -1814,4 +1815,4 @@ if __name__ == '__main__': ...@@ -1814,4 +1815,4 @@ if __name__ == '__main__':
# doc_type='doc', # doc_type='doc',
# releaser_page_num_max=3, proxies_num=1)) # releaser_page_num_max=3, proxies_num=1))
# test.releaser_page(u) # test.releaser_page(u)
test.search_page("薄唇适合什么颜色的口红") test.search_page("5热玛吉")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment