Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6af09f0

Browse files
committed
简书是 POST 方式
1 parent b69c748 commit 6af09f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/logic/auto_crawl.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ func (self AutoCrawlLogic) parseArticleList(strUrl string, autoCrawlConf *model.
209209
func (self AutoCrawlLogic) fetchArticleListFromApi(strUrl string, autoCrawlConf *model.AutoCrawlRule, isSearch bool) error {
210210
logger.Infoln("parse api url:", strUrl)
211211

212-
req, err := http.NewRequest("GET", strUrl, nil)
212+
// jianshu must be POST
213+
req, err := http.NewRequest("POST", strUrl, nil)
213214
if err != nil {
214215
return err
215216
}

0 commit comments

Comments
 (0)