Huang Huang

Results 149 comments of Huang Huang

@shixudongleo 没有,这个项目封装的就是 http://developer.baidu.com/wiki/index.php?title=docs/pcs 里的 API。 你可以看一下 https://github.com/ly0/baidupcsapi 这个项目有没有你需要的 api。因为它是通过模拟登陆的方式来操作百度网盘的,所以可能会有你需要的功能。

Here: http://django-endless-pagination.readthedocs.org/en/latest/different_first_page.html

split result? ``` python context = { 'result': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ..., n] } ``` to ``` python context = { 'result1': [1,...

The tests include an scene maybe can help you: https://github.com/frankban/django-endless-pagination/tree/master/tests/project/templates/chunks online example: http://endless.3sd.me/chunks/

This library doesn't implement connection pool, but you can control builtin connection pool via custom `Client`.

@prettyyjnic Thanks for your report. But I can't reproduce it. My test code: test.go ``` go package main import ( "fmt" "io/ioutil" "net/http" "reflect" "github.com/mozillazg/request" ) func test1(url string) (bt...

@prettyyjnic I got it. This is because the default `Accept-Encoding` header is `gzip, deflate`: https://github.com/mozillazg/request/blob/master/headers.go#L6 ``` var DefaultHeaders = map[string]string{ "Connection": "keep-alive", "Accept-Encoding": "gzip, deflate", "Accept": "*/*", "User-Agent": DefaultUserAgent, }...

@prettyyjnic You're welcome.

You can set timeout with: ``` go c := new(http.Client) timeout := time.Duration(1 * time.Second) c.Timeout = timeout req := request.NewRequest(c) req.Get(url) ``` or ``` go timeout := time.Duration(1 *...