MCPcopy Index your code
hub / github.com/AntonVanke/JDBrandMember

github.com/AntonVanke/JDBrandMember @v2021.04.04

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2021.04.04 ↗ · + Follow
7 symbols 29 edges 1 files 7 documented · 100%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

京东入会领京豆

  1. 要求

  2. Python 3.7+

  3. 需要 ChromeEdge(Chromium)FireFox 等支持Selenium的浏览器
  4. 系统支持MacLinuxWindows支持webdriver的版本

  5. 安装方式

脚本采用Python Selenium爬取京东入会有礼页面,由于遍历了超过50万个页面,所以运行的时间会比较长,建议挂在服务器上运行

  1. 克隆到本地 shell git clone https://github.com/AntonVanke/JDBrandMember.git

  2. 安装所需的包

    shell pip3 install -r requirements.txt

  3. 下载相应的浏览器驱动

  4. 运行

    1. 在本目录下打开终端运行python main.py

      第一次打开时会生成几个文件,都是可以删除的。第一次登录会提示你扫码登录,以后的登录都可以通过cookie.json登录,所以请妥善保管你的cookies

  5. 一些问题

    • 为什么我的积分没有增加呢?

      由于京东的店铺比较多,程序是通过遍历所有店铺,选择赠送京豆的店铺加入,所以进程会很缓慢。

      在你以前没有用过同类软件的情况下是可以在 10 个小时获得大约 2000 京豆的(具体以各个店铺活动为准),

      如果你以前用过此类软件,可能京豆回报率会很低

    • 为什么我运行报错了?

      可能有以下原因

      1. 没有下载驱动放到drivers文件夹里,驱动的版本不对

        请查看文档的第 2 部分安装相应的驱动

      2. 你的浏览器版本过低

        过低的浏览器版本可能并不支持selenium 3或者headless模式请你升级到最新版本,并使用对应版本的驱动

      3. 程序设计的问题

        很抱歉,由于我是匆忙的写完这个爬虫,可能有很多的不足之处,欢迎提交issuespull requests

      4. 关于 url.txt

        你可以分享你的url.txt以帮助别人快速刷分,其中不包含你的个人信息,此文件可能会随时更新

    • 运行后生成了几个文件,都是什么?

      • url.txt: 是遍历的具有入会送豆的页面 url
      • cookie.json: 是你登录京东的Cookie请不要泄露給其他人
      • log.txt: 日志文件
  6. 使用截图

截屏2021-03-08 下午8.20.18

截屏2021-03-08 下午8.20.18

  1. LICENSE

MIT License

Copyright (c) 2021 Vanke Anton

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Core symbols most depended-on inside this repo

print_log
called by 12
main.py
check_login
called by 2
main.py
brand_member
called by 2
main.py
login_by_user
called by 1
main.py
fast_task_main
called by 1
main.py
task_main
called by 1
main.py
login_by_file
called by 1
main.py

Shape

Function 7

Languages

Python100%

Modules by API surface

main.py7 symbols

For agents

$ claude mcp add JDBrandMember \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page