![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
爬虫
Flaribbit
这个作者很懒,什么都没留下…
展开
-
记一次C语言编写的爬虫 wininet 堆糖爬虫
对 没错 嗯 用C语言写的爬虫首先,既然是爬虫,当然要能够访问网页,用C访问网页的方法也有很多,这里选择的是一种相对比较方便的wininet,用InternetOpenUrl打开url然后读取数据就可以了于是定义了一个获取网页源码的函数,ASSERT是个人习惯问题,见最后的完整代码int GetUrl(char *url, char *buf, int *length){ long ...原创 2019-10-28 23:12:30 · 1231 阅读 · 0 评论 -
Mathematica 爬虫系列 火车站站查询
代码如下(data=StringCases[Import["http://www.jt2345.com/huoche/zhanzhan/"<>#1<>"-"<>#2<>".htm","Text",CharacterEncoding->"CP936"],RegularExpression@"<td.*?>(.*?)</td&g...原创 2019-07-15 23:07:51 · 529 阅读 · 0 评论 -
python 日常爬虫练习 解析nicotv.me的视频源地址
经过一顿F12操作,得到了以下程序from bs4 import BeautifulSoupimport urllib,requests,re,jsonprint("Input webpage url:")url=input()print("[Info] Downloading webpage...")res=requests.get("http://www.nicotv.me"+ ...原创 2019-09-19 13:01:51 · 6046 阅读 · 0 评论