Giter Site home page Giter Site logo

zellier / cookie-extraction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gongjunhao/cookie-extraction

0.0 0.0 0.0 2.51 MB

登录后提取在线cookie,更新至服务器或拷贝至剪切板,为爬虫抓取跳过复杂验证码识别程序

Home Page: https://gjh6.com

License: MIT License

HTML 14.41% JavaScript 85.59%

cookie-extraction's Introduction

Cookies提取助手(cookie-extraction)

入门爬虫,基本上都会遇到的环节---“验证码”(阻止程序自动化)。 就是这个东西使得很多程序的自动化工作止步,让人懊恼不已。

Cookies提取助手的出现,可以通过手工输入验证码,免去程序实现验证码识别的繁琐实现, 提取有效可用的Cookies,提供给爬虫抓取程序,实现免验证码爬取。

功能特点

  • 自定义服务器地址(API)
  • 操作简单,页面右键菜单提取
  • 可将Cookies上传至服务器,长期使用
  • 可将Cookies拷贝至剪切板,调试快捷使用

注意事项

  • 适用场景:验证码登录才能爬取的网站,手动输入验证码获取有效Cookies使用,且网站未针对Cookies进行反爬虫处理。

安装

  • chrome浏览器,设置 --> 更多工具 --> 扩展程序
  • 勾选开发者模式
  • 拖拽*.crx包至此扩展页面释放,确认安装即可
  • 详细操作步骤,参考:http://www.jianshu.com/p/12ca04c61fc6

使用

  • 点击浏览器“Cookies提取助手”扩展程序按钮,弹框里输入HTTP服务器接口地址
  • 登录需要爬取的网站成功后,在页面点击鼠标右键
  • 选择“Cookies提取助手”
  • 选择“提取Cookies更新服务器”
  • 选择“提取Cookies至剪切板”

usage

服务器接口说明

目前仅支付HTTP接口:

var json = {
        "domain": curDomain,
        "cookies": cookies
    };

$.ajax({
        type: "POST",
        url: ufindServerAPI,
        contentType: "application/json; charset=utf-8",
        data: JSON.stringify(json),
        dataType: "json",
        success: function(data) {
            if (data.status == "1" && data.successful) {
                console.log("服务器Cookies信息更新成功!");
            }
        },
        error: function(XMLHttpRequest, textStatus, errorThrown) {
            console.log("服务器Cookies信息更新失败!错误码:"+XMLHttpRequest.status);
        }
    });

引用资源

问题反馈

LICENSE

MIT License

cookie-extraction's People

Contributors

gongjunhao avatar

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.