Skip to content

Commit

Permalink
fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
hjhee committed Aug 14, 2019
1 parent 1ecd381 commit 2d7441f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const (
version = "v0.1.3"
version = "v0.1.3.1"
numFetcher = 10
numParser = 50
numRenderer = 5
Expand Down
4 changes: 2 additions & 2 deletions parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func homepageParser(done <-chan struct{}, page *HTMLPage, pc *PageChannel, tmMap
// http://tieba.baidu.com/p/totalComment?t=1501582373&tid=3922635509&fid=867983&pn=2&see_lz=0
// python爬取贴吧楼中楼
// https://mrxin.github.io/2015/09/19/tieba-louzhonglou/
for i := int64(0); i < pageNum; i++ {
for i := int64(0); i <= pageNum; i++ {
u := &url.URL{
Scheme: "http",
Host: "tieba.baidu.com",
Expand All @@ -112,7 +112,7 @@ func homepageParser(done <-chan struct{}, page *HTMLPage, pc *PageChannel, tmMap
q.Set("fid", strconv.Itoa(int(forumID)))
q.Set("pn", strconv.Itoa(int(i)))
u.RawQuery = q.Encode()
// log.Printf("requesting totalComment: %s", u)
log.Printf("requesting totalComment: %s", u)
select {
case <-done:
return
Expand Down
4 changes: 2 additions & 2 deletions url.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
https://tieba.baidu.com/p/3922635509
file:///example/test0.json?tid=3922635509
https://tieba.baidu.com/p/6212415344
file:///example/test0.json?tid=6209031748

0 comments on commit 2d7441f

Please sign in to comment.