脚本代码如下
https://raw.githubusercontent.com/MoeClub/Pixiv/master/pixiv.py
workflows代码如下
- # This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python application
on:
schedule:
- cron: "15 11 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: download pic
run: |
python3 pixiv.py "https://www.pixiv.net/ranking.php?mode=male"
- name: upload tg
run: |
TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
chat_ID=xxxxxxxxx
for i in PixivImage/*
do
curl -F chat_id=$chat_ID -F photo=@"$i" https://api.telegram.org/bot$TOKEN/sendPhoto
curl -F chat_id=$chat_ID -F document=@"$i" https://api.telegram.org/bot$TOKEN/sendDocument
rm -rf $i
done
TOKEN和chat_ID都要改成你自己的
需要改其他图片类型修改这句
python3 pixiv.py "https://www.pixiv.net/ranking.php?mode=male"
这是我搭出来的效果,每日自动下载上传,配置一次就不用管了
https://t.me/pixivc
热议
2楼 sagerking 昨天19:59
可还行
3楼 aipage 昨天20:00
有什么用呢?还要下载下来
4楼 etc小号 昨天20:01
有什么用呢?还要下载下来
下载是github actions做的,配置好就不用管了
至于有什么用,我也不清楚
5楼 老猹 昨天20:03
前两天在翻萌咖大佬的dd脚本时也看见这个脚本了来着。
6楼 qingxrong 昨天20:03
支持一下
7楼 etc小号 昨天20:04
前两天在翻萌咖大佬的dd脚本时也看见这个脚本了来着。
脚本项目在这,蛮好用的,虽然是三年前的项目了
https://github.com/MoeClub/Pixiv
8楼 幺鸡 昨天20:05
是拿来做图床还是干啥?
9楼 mjj天下第一 昨天20:05
类似的
https://t.me/carry_AnimeWallpapers
10楼 etc小号 昨天20:11
是拿来做图床还是干啥?
就是把每日榜单下载到tg,算是满足收藏癖?
12楼 海苔 4小时前
是拿来做图床还是干啥?
老板头像有原图吗
13楼 hjvn2211445 2小时前
14楼 cqcyx 1小时前
etc小号 发表于 2022-1-4 20:11
就是把每日榜单下载到tg,算是满足收藏癖?
好东西啊,这个每日榜单是指定tg某个群组的榜单吗
15楼 etc小号 1小时前
cqcyx 发表于 2022-1-5 07:04
好东西啊,这个每日榜单是指定tg某个群组的榜单吗
pixiv这个站的图片
16楼 yushui 半小时前
能不能只下载发送r18的呢
17楼 etc小号 6分钟前
能不能只下载发送r18的呢
修改这个
https://www.pixiv.net/ranking.php?mode=male
申明:本文内容由网友收集分享,仅供学习参考使用。如文中内容侵犯到您的利益,请在文章下方留言,本站会第一时间进行处理。