通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
flyzy2005
V2EX  ›  VPS

搬瓦工优惠码:用 Python 写了个自动获取搬瓦工最新优惠码的脚本

  •  
  •   flyzy2005 · Aug 20, 2018 · 715 views
    This topic created in 2850 days ago, the information mentioned may be changed or developed.

    前段时间搬瓦工 6%的那个优惠码过期了,去看了下原来搬瓦工的优惠码都在 html 的源码里藏着,就用 python 写了个小脚本,自动爬取搬瓦工优惠码,再去购买页面测试出来每个优惠码的优惠额度有多少,找出优惠力度最大的优惠码。

    逻辑很简单,就 3 个函数,1 个正则出优惠码,1 个正则出优惠力度,1 个将搬瓦工优惠码和优惠力度都存在文件里: https://www.bwgyhw.com/bandwagonhost-how-to-get-latest-promo-codes/

    脚本运行的结果(目前搬瓦工优惠码最大优惠力度为 6.25%,比之前还要高了):

    BWH25GMU6GRE,- 1.1%

    BWH2068TVOPV,- 2.82%

    BWH25AQH2CMQ,- 5.97%

    BWH2EMB8VSLX,- 3.58%

    BWH21RHEBIJ3,- 4.28%

    BWH2OJA9WE0O,- 5.39%

    BWH2NGYHJ0KF,- 1.98%

    BWH26FXH3HIQ,- 6.25%

    BWH2XKYRDYCN,- 1.78%

    BWH2AO5XCNJT,- 4.04%

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1036 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 18:47 · PVG 02:47 · LAX 11:47 · JFK 14:47
    ♥ Do have faith in what you're doing.