GithubHelp home page GithubHelp logo

Comments (2)

nobodxbodon avatar nobodxbodon commented on May 15, 2024

刚用 python 的 requests 取了 status_code,除了 200 和 404,有不少其他码但似乎浏览器访问没问题。
@wenyurush 请问之前是如何获取的返回码?
另外,至少此两项可以访问(国外):

84 site:http://www.fengtang.com/blog/	"http_code: 000"
98 site:https://kenengba.com/	"http_code: 000"

from chinese-independent-blogs.

wenyurush avatar wenyurush commented on May 15, 2024

刚用 python 的 requests 取了 status_code,除了 200 和 404,有不少其他码但似乎浏览器访问没问题。
@wenyurush 请问之前是如何获取的返回码?
另外,至少此两项可以访问(国外):

84 site:http://www.fengtang.com/blog/	"http_code: 000"
98 site:https://kenengba.com/	"http_code: 000"

果真是我大意了,当时直接测试的,忘了考虑fq的问题

time cat url.txt| parallel --eta  -j500 --joblog job.log curl --silent -o {}.$(date +%Y-%m-%d).log  --retry 5 --max-time 20 --connect-timeout 5 --write-out site:{}\'\\\nhttp_code:\\\t%{http_code}\\\nremote_ip:\\\t%{remote_ip}\\\nsize_request:\\\t%{size_request}\\\nsize_header:\\\t%{size_header}\\\nsize_download:\\\t%{size_download}\\\nspeed_download:\\\t%{speed_download}\\\ntime_namelookup:\\\t%{time_namelookup}\\\ntime_connect:\\\t%{time_connect}\\\ntime_total:\\\t%{time_total}\\\n\\\n\' --location --max-redirs 5 --user-agent \"`shuf -n 1 user-agents.txt`\" {} >> net_quality.log

完整的结果在

https://github.com/wenyurush/Test_site_status/blob/main/net_quality.log

from chinese-independent-blogs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.