Coder Social home page Coder Social logo

common-scripts's Introduction

自用脚本


主要是一些经常用的一些网站的签到什么的,想用的话随便拿去用。
随缘增加新脚本

推送方式

支持server酱推送plus 。 将推送token或者是key填入相应的字段即可。

部署方式


实现每天定时执行脚本的话,有很多种方法,可自上网找部署教程:
1.最简单的就是将脚本部署在腾讯云函数上。不过现在云函数收费了😪😪 我之前写过一篇博客,描述了云函数的部署过程,可供参考 点击这里
2.你如果拥有自己的服务器的话,可以部署在青龙面板上或者是elecV2P上,作者都在使用的两个工具,推荐青龙面板,比较好操作。
3.放在GitHub Action上面,这个稍微麻烦一点,而且GitHub抵制 GitHub Action的滥用,不推荐
4.还有很多种方法,可自行上网查询。

🚀🚀附青龙使用教程:

因为本仓库的脚本没有添加环境变量等设置,所以需要手动到青龙添加脚本,很简单。 示例(以阿里云盘aliyun.py为例): 脚本管理→新建脚本→文件名:aliyun.py → 复制本仓库aliyun.py的代码到你在青龙创建的脚本中,并在其中填入你的refresh_token和推送方式的key并且保存 →定时任务→新建任务→名称随意,命令:task aliyun.py 定时规则自己决定。→大功告成

有问题的话,请提issue。

common-scripts's People

Contributors

bighammer-link avatar xiaodesetingyongzhanghao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

common-scripts's Issues

关于汽车之家签到

我用了你的脚本,换成自己的cookie,好用,可以签到。
但是在这之前 我也写过其它论坛的签到
我用的是如下代码达到cookie登陆的目的。
但是我发现这种方式 用在汽车之家 登录不了。
我搞不明白 什么原因。我不是专职爬虫开发。
你看看 你能知道原因吗?
cookie = ''
dd = SimpleCookie(cookie)
xx = {v.key: v.value for k, v in dd.items()}

    self.driver.get('https://i.autohome.com.cn/')
    for kk, vv in xx.items():
        self.driver.add_cookie(cookie_dict={'name': kk, 'value': vv})
    self.driver.refresh()

建议将项目中的 Server酱 链接换成推荐链接

您好,我是 Server酱的作者 Easy 。注意到您的项目中对接或提及了 Server酱,非常感谢对我们的支持。

这里有一个小建议。Server酱最近推出了「推荐返现计划」,您可以在项目中Server酱的官网链接后边加上推荐参数,这样在用户从这里进入Server酱并订阅会员后,您的项目将获得2元/单的佣金。

只需要用微信登录fx.ftqq.com ,然后开通计划就可以获得您的推荐链接,佣金会实时地转入开通账号的微信零钱中。

希望这个计划能让您的开源项目更好。


Hello, I am Easy, the author of ServerChan. I noticed that your project has integrated or mentioned ServerChan, and I am very grateful for that.

I have a small suggestion. ServerChan has recently launched a "Referral Cashback Program". You can add a referral parameter to the link to ServerChan's official website in your project. This way, when users enter ServerChan through your link and subscribe to a membership, your project will earn a commission of 2 RMB per subscription.

You just need to log in to fx.ftqq.com with WeChat, activate the program, and you will get your referral link. The commission will be instantly transferred to the WeChat Wallet of the account that activated the program.

Even though the earnings might not be substantial, I hope this program can provide some additional support for your open-source project.

阿里云盘签到

`## 开始执行... 2024-08-16 22:12:44

更新access_token
Traceback (most recent call last):
File "/ql/data/scripts/aliyun.py", line 80, in
mian()
File "/ql/data/scripts/aliyun.py", line 73, in mian
access_token = update_token(refresh_token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/ql/data/scripts/aliyun.py", line 66, in update_token
access_token = response['access_token']
~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'access_token'

执行结束... 2024-08-16 22:12:44 耗时 1 秒  `

奇怪我token明明都填对了但还是跑不起来

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.