Skip to content

Instantly share code, notes, and snippets.

@challengeYY
challengeYY / task.md
Last active July 2, 2019 02:12
Welcome file

网站,提供文字,图片,视频供人访问获取信息。 有部分人需要完成任务,就是从网上获取信息,加工之后,再将加工后的信息传播到网上。 而爬虫主要完成的就是这个任务流程。

任务1:使用requests库访问并显示一个网页的源码。

网址:https://www.toutiao.com/

目标:了解requests的基础用法

@challengeYY
challengeYY / 0_reuse_code.js
Created September 27, 2016 09:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@challengeYY
challengeYY / hostloc.py
Last active April 10, 2019 09:57
hostloc论坛每日翻牌
#encoding=utf-8
import requests
from bs4 import BeautifulSoup
import re
import sys
import datetime
uid="11111" #用户名
pwd="11111" #密码