yihua.huang
ef32571821
rewrite Request.equals and hashCode, add Method to check #483
2017-03-11 10:52:39 +08:00
yihua.huang
8b8f535c30
refactor:extract charset detect to utils
2017-03-11 10:43:10 +08:00
Ckex.zha
e645524ad2
fix bug,set ExecutorService
2017-03-04 20:57:29 +08:00
yihua.huang
a872a6480e
fix code sample for github #348
2017-02-25 22:46:29 +08:00
yihua.huang
bbe0b52ddd
remove synchronized in QueueScheduler #410
2017-02-25 19:55:45 +08:00
yihua.huang
ad69963005
remove synchronize in Page #411
2017-02-25 19:42:12 +08:00
yihua.huang
3a796b9413
remove duplicate code #421
2017-02-25 12:01:12 +08:00
yihua.huang
42f1018010
remove messy code
2017-02-21 14:08:05 +08:00
xbynet
650468c0e4
解决POST中文参数乱码问题
2017-01-22 18:04:22 +08:00
yihua.huang
d60615f503
修复使用startUrls没有设置domain导致使用cookie空指针的问题#438
2017-01-21 11:29:42 +08:00
yihua.huang
407fbb6130
refactor logger#445
2017-01-21 11:05:54 +08:00
Ckex.zha
0dc26c8ca0
optimize code.
2017-01-20 14:03:26 +08:00
Yihua Huang
4f76d62d4f
Merge pull request #444 from ckex/develop
...
绕过安全证书
2017-01-18 23:42:51 +08:00
Ckex.zha
e4af05a6f2
绕过安全证书
2017-01-18 17:28:01 +08:00
xbynet@outlook.com
c23627bf63
解决post/redirect/post 302跳转问题
2017-01-17 00:07:01 +08:00
yihua.huang
9bdb48b2d0
version 0.6.0
2016-12-18 11:20:28 +08:00
yihua.huang
eeb607fd0e
将Spider.processRequest()抛出异常改回原来的逻辑
2016-12-18 11:04:58 +08:00
yihua.huang
00dfebbceb
#424 remove guava dep and add fix docs
2016-12-18 10:45:50 +08:00
yihua.huang
5ce3fdfe5a
some refactor in log
2016-12-18 08:15:09 +08:00
yihua.huang
98163a3e40
update examples
2016-12-18 07:46:18 +08:00
yihua.huang
8f942d6fe2
#419 修复抓取https链接线程无法结束导致进程一直运行的问题
2016-12-18 06:56:01 +08:00
yihua.huang
dafd2b77ff
fix GithubRepoPageProcessor in example
2016-11-24 08:18:06 +08:00
Jerry
e56b8c3efc
fix the monitor bug which the spider will terminate when a seed url with port
2016-09-22 22:36:18 +08:00
yihua.huang
448e528140
update StringUtils to apache lang3 #314
2016-05-24 13:33:17 +08:00
yihua.huang
3e33959b7a
#319 fix javadoc
2016-05-24 13:17:35 +08:00
yihua.huang
8730e3e97a
Merge branch 'fix' of git://github.com/kapsterio/webmagic into kapsterio-fix
2016-05-08 20:46:22 +08:00
yihua.huang
2400ff7e1a
resovle conflict
2016-05-08 20:31:43 +08:00
yihua.huang
b7f3c4bba0
Merge branch 'master' of git://github.com/hepan/webmagic into hepan-master
2016-05-08 20:27:47 +08:00
yihua.huang
61c28a0130
refactor on proxypool
2016-05-08 17:53:15 +08:00
yihua.huang
b871b210c5
Merge branch 'proxy-strategy' of github.com:EdwardsBean/webmagic into EdwardsBean-proxy-strategy
2016-05-08 17:53:02 +08:00
Jon
83c27ebbc4
增加IP代理认证功能
2016-05-08 16:17:58 +08:00
yihua.huang
ca072c5575
fix URL regex in GithubRepoPageProcessor #305
2016-05-08 12:09:45 +08:00
hepan
89c6e52863
代理增加用户名密码认证
2016-04-13 15:16:57 +08:00
zhangheng09
6b179c3d55
这个改动的原因基于两点:1)代理归还给代理池的时机应该是执行完http请求后就要尽早归还 2)http代理应该是HttpClientDownloader该考虑的事,不应该有Spider来处理,Spider并不知道它的downloader是个HttpClientDownloader
2016-03-12 20:09:41 +08:00
zhangheng09
5f106c9c69
当page为null时,意味着非正常的响应状态,应该抛出异常,否则SpiderListener的onSuccess方法和onError方法都会执行
2016-03-12 20:03:27 +08:00
yihua.huang
7edfa26f90
complete javadoc
2016-01-21 18:34:07 +08:00
yihua.huang
8b90b91e33
complete some javadoc
2016-01-21 18:14:10 +08:00
yihua.huang
9c5716a543
complete javadoc
2016-01-21 18:05:12 +08:00
yihua.huang
93764fa2c9
ignore some test
2016-01-21 12:28:32 +08:00
x1ny
90e14b31b0
修正FileCacheQueueScheduler导致程序不能正常结束和未关闭流
...
FileCacheQueueScheduler中开启了一个线程周期运行来保存数据但在爬虫结束后没有关闭导致程序无法结束,以及没有关闭io流。
解决方法:
让FileCacheQueueScheduler实现Closable接口,在close方法中关闭线程以及流。
在Spider的close方法中添加对scheduler的关闭操作。
2015-11-12 23:10:20 +08:00
高军
590561a6e4
修正site.setHttpProxy()不起作用的bug
2015-03-09 15:54:15 +08:00
edwardsbean
19474e4716
add SimpleProxyPool and IProxyPool
2015-02-28 17:50:10 +08:00
edwardsbean
4978665633
add retry sleep time
2015-01-21 13:30:02 +08:00
yihua.huang
8ffc1a7093
add NPE check for POST method
2015-01-13 14:10:00 +08:00
zhugw
bc666e927d
Update Site.java
...
setCycleRetryTimes的javadoc是这么说的:Set cycleRetryTimes times when download fail, 0 by default. Only work in RedisScheduler.
而通过查看源码发现似乎并没有做限制,即只能用于RedisScheduler. 故想问一下该javadoc是否过时了?
2014-09-12 12:42:57 +08:00
yihua.huang
147401ce5e
remove duplicate setPath in ProxyPool
2014-09-09 22:58:44 +08:00
yihua.huang
e7668e01b8
fix SourceRegion error and add some tests on it #144
2014-08-21 14:29:06 +08:00
yihua.huang
9866297ec4
Disable jsoup entity escape by Default. Set Html.DISABLE_HTML_ENTITY_ESCAPE to false to enable it. #149
2014-08-14 08:04:56 +08:00
yihua.huang
4e6e946dd7
more friendly exception message in PlainText #144
2014-08-13 10:02:16 +08:00
yihua.huang
af9939622b
move thread package out of selector (because it is add by mistake at the beginning)
2014-06-25 18:19:50 +08:00
yihua.huang
eae37c868b
new sample
2014-06-10 17:38:54 +08:00
yihua.huang
b3a282e58d
some fix for tests #130
2014-06-10 00:05:30 +08:00
zwf
2f89cfc31a
add test and fix bug of proxy module
2014-06-09 13:32:02 +08:00
yihua.huang
7a64847a3c
Bugfix: selector does not works well in element #113
2014-06-03 20:03:33 +08:00
yihua.huang
8d67fd0357
change back return proxy from spider to httpclientdownloader #128
2014-05-28 08:08:51 +08:00
yihua.huang
40bf8ca58f
change return proxy from spider to httpclientdownloader #128
2014-05-28 07:57:42 +08:00
yihua.huang
1f21d9cc14
spell mistake fix #128
2014-05-28 07:29:19 +08:00
Yihua Huang
e310139d00
Merge pull request #128 from yxssfxwzy/proxy
...
多个代理的管理
2014-05-28 07:22:08 +08:00
yihua.huang
b165090434
Bugfix:Type convert error in JsonPathSelector #129
2014-05-27 21:19:22 +08:00
yihua.huang
3939074a23
Bugfix: nodes() only return the first element #113
2014-05-27 17:53:06 +08:00
yihua.huang
41c2ea9498
refactor of selectable cont' #113
...
1. remove lazy init of Html
2. rename strings to sourceTexts for better meaning
3. make getSourceTexts abstract and DO NOT always store strings
4. instead store parsed elements of document in HtmlNode
2014-05-27 17:34:19 +08:00
yihua.huang
f9825c214a
refactor selectable for html fragment #113
2014-05-27 16:00:51 +08:00
yihua.huang
03d26c169b
Enhance auto charset detect #126
...
1. Only read from content once to fix stream closed exception
2. invite moco as server test
2014-05-26 17:45:30 +08:00
zwf
c146e2c7b4
add proxy pool
2014-05-19 15:59:31 +08:00
yihua.huang
21982d3460
remove cpdetector temporary #126
2014-05-14 23:52:27 +08:00
fengwuze
fcbfb75608
修改自动从网页中获取字符的代码块,抽取出来成为单独的方法。
2014-05-14 19:14:42 +08:00
fengwuze
95494d3c4d
增加处理meta的逻辑。
...
遗留:
3、网页没有指定编码的情况下,需要采用cpdetector,但目前cpdetector这个在Maven的中央库里面没有,不清楚如何解决。
2014-05-14 14:53:54 +08:00
yihua.huang
dde2d89bbe
Ignore content in json when bracket when remove padding #124
2014-05-08 23:37:18 +08:00
ywooer
259f0a16c5
Update FilePipeline.java
2014-05-06 18:33:00 +08:00
ywooer
26d38851b5
add charset to Writer
2014-05-06 18:28:50 +08:00
yihua.huang
01aec7e1ab
extension point of geturl #118
2014-05-02 23:23:23 +08:00
yihua.huang
ec1c2e8cbc
test and so on
2014-05-02 23:19:11 +08:00
yihua.huang
4f22f1210e
some bug fix #118
2014-05-02 20:38:49 +08:00
yihua.huang
56f033ce8d
set setDuplicateRemover for chain api #118
2014-05-02 20:21:23 +08:00
yihua.huang
d1140b9e29
add bloom filter for scheduler #118
2014-05-02 20:20:22 +08:00
yihua.huang
8e4814bdc5
fix path seperator
2014-05-02 17:06:34 +08:00
yihua.huang
e8d4a9be2b
fix remove duplicate error #117
2014-04-29 20:32:06 +08:00
yihua.huang
1104122979
more abstraction in scheduler
2014-04-27 09:30:01 +08:00
yihua.huang
2770811a10
update monitor example
2014-04-26 11:24:22 +08:00
yihua.huang
5ecd909ef2
add timeout for wait/notify #111
2014-04-25 19:41:36 +08:00
yihua.huang
c7afdb516e
remove thread utils #110
2014-04-25 18:44:45 +08:00
yihua.huang
17e95f2a7f
comments
2014-04-25 18:39:01 +08:00
yihua.huang
05eb7831b6
refactor and comments #110
2014-04-25 18:27:40 +08:00
yihua.huang
375e64e845
more monitor status
2014-04-25 18:10:14 +08:00
yihua.huang
018061d2cd
fix error in thread pool
2014-04-25 18:01:02 +08:00
yihua.huang
cdc423f2bf
log
2014-04-25 17:41:41 +08:00
yihua.huang
c6661899fd
new thread pool #110
2014-04-25 17:33:48 +08:00
yihua.huang
179baa7a22
return when page is null
2014-04-25 16:07:41 +08:00
yihua.huang
0336f4cdb4
remove IllegalStateException when download error for less error log
2014-04-25 16:06:29 +08:00
yihua.huang
11ba5beb42
[refactor]move monitor to webmagic-extension #98
2014-04-25 13:17:13 +08:00
yihua.huang
d61f65cef8
update mbean to mxbean #98
2014-04-25 11:31:43 +08:00
yihua.huang
30af23d003
split monitor to server and client mode #98
2014-04-25 11:25:52 +08:00
yihua.huang
ced79630d3
specify jndi and jmx #98
2014-04-25 11:11:15 +08:00
yihua.huang
95d3802e77
add formdata support for post request #108
2014-04-24 11:48:58 +08:00
yihua.huang
f49bb877c8
clean some code #109
2014-04-24 11:38:13 +08:00
yihua.huang
e1aaf1dd11
fix mistake of guava Table #109
2014-04-24 11:05:49 +08:00
yihua.huang
8ba2da146c
request method #108 and more cookie #109 config
2014-04-24 10:51:37 +08:00
yihua.huang
b06aa489fb
[BugFix]Only one url from sourceRegion can be extracted #107
2014-04-18 17:48:26 +08:00
Bo LIANG
08fa3b01c1
when download error, throw an exception instead of calling onError and returning peacefully. #105
2014-04-17 17:53:12 +08:00
yihua.huang
27b37e8164
extension point and sample for JMX support #98
2014-04-17 08:12:37 +08:00
yihua.huang
a5db6cf292
some monitor and JMX support #98
2014-04-17 00:35:09 +08:00
yihua.huang
f39aa435cf
add null check #104
2014-04-16 19:46:32 +08:00
yihua.huang
42bbe40a37
[Bugfix]Urls will be lost when call setScheduler() #104
2014-04-16 19:45:17 +08:00
Bo LIANG
163773af6b
combine two try-catch block into one, make it cleaner.
2014-04-16 16:05:08 +08:00
yihua.huang
ec446277b1
some refactor in httpclientdownloader
2014-04-15 15:30:37 +08:00
yihua.huang
4a035e729a
extension point for LocalDuplicatedRemovedScheduler #95
2014-04-13 23:31:13 +08:00
yihua.huang
b249e49748
[Bugfix]loop error when add TargetRequest #99
2014-04-13 23:04:09 +08:00
Yihua Huang
da2f023c12
Merge pull request #96 from ouyanghuangzheng/master
...
修改了Spider 和site 几处注释
2014-04-13 13:12:12 +08:00
愤怒的番茄
32ba1b8889
修复几处注释问题
2014-04-13 12:41:15 +08:00
yihua.huang
84b897f83b
update AngularJSProcessor
2014-04-13 12:20:57 +08:00
yihua.huang
03c251237b
add Json parse support
2014-04-13 10:23:00 +08:00
愤怒的番茄
644e8d1f72
同步官方源码
2014-04-12 22:32:22 +08:00
yihua.huang
969ad1766b
change logger style to slf4j for cleaner code
2014-04-06 21:32:20 +08:00
yihua.huang
9b2cb43f47
ConfigurablePageProcessor #91
2014-04-05 23:40:10 +08:00
Bo LIANG
b043ac76d6
change the formatter of log.
...
To use slf4j, we should insert {} into the formatter string.
2014-04-05 11:31:56 +08:00
yihua.huang
7aaf837e15
change logger to slf4j style for performance #84
2014-04-04 20:10:00 +08:00
Bo LIANG
762a3973fd
Modify the log levels of LocalDuplicatedRemovedScheduler.java
...
The old version will print a debug level log each time the push method is
called. So sometimes, when a html page have multiple links for the same
page, the debug log will appears more than once. Also, when we meet a
duplicate URL, it will also print a log, which will be confusing.
I change the level of it to trace. And each time a URL is really push into
queue, print a debug level log.
2014-04-04 15:53:46 +08:00
yihua.huang
a1c7e826f7
fix dep of slf4j-log4j12
2014-04-03 23:04:31 +08:00
yihua.huang
01848301d4
encode illegal charactors in url #80
2014-04-01 22:14:30 +08:00
yihua.huang
2780423e60
enable blank space in quotes in UrlUtils.fixAllRelativeHrefs #80
2014-04-01 20:35:11 +08:00
yihua.huang
97b6f46280
Bugfix: break loop in addTargetRequests #81
2014-04-01 20:12:25 +08:00
yihua.huang
8d8194bee4
Change HashMap to LinkedHashMap in ResultItems for same order of input and output #76
2014-03-25 08:23:20 +08:00
yihua.huang
8b35d79569
Do not cache document in Selectable for selected Html element #73
2014-03-19 22:19:06 +08:00
yihua.huang
6201fd6966
add worker as container
2014-03-17 23:01:58 +08:00
yihua.huang
6c11718566
Clean project structure #70
2014-03-14 23:24:38 +08:00
yihua.huang
9606a173cd
fix ZipCodePageProcessor
2014-03-13 22:55:50 +08:00
yihua.huang
af07280176
remove defend code for httpclient 4.3.1 because it is fixed in 4.3.3 #59
2014-03-13 07:11:56 +08:00
yihua.huang
55368919df
add attribute 'text' support for CssSelector #66
2014-03-11 13:18:34 +08:00
yihua.huang
88b50d4182
bigfix: cycleTry will not work when spawnUrl is set to false #62
2014-03-04 07:33:07 +08:00
yihua.huang
2768a1cae4
add test for cycleTriedTimes and fix cycleTriedTimes inc error #60
2014-03-01 15:10:38 +08:00
yihua.huang
bbd0d7e600
update httpclient version to 4.3.3 #59
2014-02-28 21:17:02 +08:00
yihua.huang
571061454a
#58 add CYCLE_TRIED_TIMES support to QueueScheduler and PriorityScheduler
2014-02-27 23:54:30 +08:00
yihua.huang
0e98183f74
Change log4j to slf4j #55
2014-02-12 09:35:57 +08:00
yihua.huang
fa33b15843
property loader
2014-02-11 23:07:31 +08:00
yihua.huang
af809c4d55
update version to 0.5.0-snapshot
2014-02-11 22:16:01 +08:00
Almark Ming
2b46b11e55
Update RegexSelector.java
...
Optimize regex format check
Conflicts:
webmagic-core/src/main/java/us/codecraft/webmagic/selector/RegexSelector.java
2013-12-21 08:38:17 +08:00
yihua.huang
ff2f588c41
#48 nullpointer exception
2013-12-04 22:11:20 +08:00
yihua.huang
6a828e923c
#46 Downloader thread hang up when timeout
2013-12-03 09:59:54 +08:00
shijinping
9a524aa364
double-check 中再取次httpClient的内容
2013-11-28 14:38:30 +08:00
yihua.huang
59ad4cad27
#42 Add jsonpath in annotation mode for json result
2013-11-28 08:25:16 +08:00
yihua.huang
c2d6d495b3
#41 add getThreadAlive(),getStatus,getPageCount() to spider
2013-11-28 07:59:24 +08:00
yihua.huang
cf62d707e0
#36 Spider does not exit when success
2013-11-27 23:33:18 +08:00
yihua.huang
a01312930a
#39 Parsing html after page.getHtml()
2013-11-27 22:01:34 +08:00
yihua.huang
f63d33b457
update some comments
2013-11-27 21:06:53 +08:00
yihua.huang
04fcf3193f
#38 Change algorithm of SmartContentSelector
2013-11-23 13:56:55 +08:00
yihua.huang
296a68920e
fix javadoc and add setPipelines() for spider
2013-11-14 13:23:29 +08:00
yihua.huang
47a0360783
#35 add status code to page
2013-11-12 11:51:34 +08:00
yihua.huang
bc5c30de17
update scripts
2013-11-12 08:20:59 +08:00
yihua.huang
df8ca8ad09
add scripts
2013-11-10 22:30:48 +08:00
yihua.huang
fe6d9bb2e2
get keep-alive rework
2013-11-06 21:53:39 +08:00