ottovonx
V2EX  ›  macOS

如何用 alfred 自定义中国知网网络搜索

  •  
  •   ottovonx · May 23, 2014 · 5159 views
    This topic created in 4384 days ago, the information mentioned may be changed or developed.
    像豆瓣这种搜索地址: http://www.douban.com/search?source=suggest&q={query} 可以用{query}来替换自定义搜索,但是像中国知网这样的: http://epub.cnki.net/kns/brief/default_result.aspx 该怎么处理呢?
    10 replies    2019-08-01 21:51:57 +08:00
    xderam
        1
    xderam  
       May 23, 2014   ❤️ 1
    post请求
    ottovonx
        2
    ottovonx  
    OP
       May 23, 2014
    @xderam 求详解 搜出来的东西看不明白 我是外行
    lululau
        3
    lululau  
       May 23, 2014
    这个是 POST 的搜索。。。
    还是第一次见
    貌似没办法。。。
    xderam
        4
    xderam  
       May 23, 2014
    @ottovonx 搜索下curl命令的用法,里面有post请求如何提交.把参数换成{query}就可以了.
    ottovonx
        5
    ottovonx  
    OP
       May 24, 2014
    curl -d "{query}" http://epub.cnki.net/kns/brief/default_result.asp
    @xderam 表鄙视我 我只能明白到这一步 接下来该怎么办 这个命令添加不到alfred里面去
    Sylv
        6
    Sylv  
       May 24, 2014
    @ottovonx 这得做个 Workflow,Custom Search 应该解决不了。
    Sylv
        7
    Sylv  
       May 24, 2014   ❤️ 1
    @ottovonx 抓包试了下,Custom Search 还是能搞定的
    http://epub.cnki.net/kns/brief/default_result.aspx?txt_1_sel=FT%24%25%3D%7C&txt_1_value1={query}&txt_1_special1=%25&txt_extension=&expertvalue=&cjfdcode=&currentid=txt_1_value1&dbJson=coreJson&dbPrefix=SCDB&db_opt=CJFQ%2CCJFN%2CCDFD%2CCMFD%2CCPFD%2CIPFD%2CCCND%2CCCJD%2CHBRD&db_value=&hidTabChange=&hidDivIDS=&singleDB=SCDB&db_codes=&singleDBName=&againConfigJson=false&action=scdbsearch&ua=1.11
    txt_1_value1 这个参数就是搜索关键词,其它是默认搜索的参数,你再按你的需求自己改改吧
    jgarrick
        8
    jgarrick  
       May 25, 2014
    我只想说。。楼主好心。。做好发我一份

    [email protected]
    qs93313
        9
    qs93313  
       Aug 1, 2019
    @Sylv 感谢你在 7 楼的回答!
    Sylv
        10
    Sylv  
       Aug 1, 2019 via iPhone
    @qs93313 😄
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2873 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 12:08 · PVG 20:08 · LAX 05:08 · JFK 08:08
    ♥ Do have faith in what you're doing.