Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小建议 #10

Open
xiaobailoves opened this issue Mar 26, 2022 · 2 comments
Open

小建议 #10

xiaobailoves opened this issue Mar 26, 2022 · 2 comments

Comments

@xiaobailoves
Copy link

推特的图片库如果能用cf的worker挂起来,然后就可以省去代理.
加上Rss订阅源,perfect

举个例子
原来的Img标签是这样的
https://pbs.twimg.com/media/FOuH99CVEAEcwcV?format=jpg&name=orig
通过cf的worker代理后就可以在国内进行访问
https://autumn-water-a15f.whitediamond.workers.dev/media/FOuH99CVEAEcwcV?format=jpg&name=orig

我无法魔改,因为我不懂Python...

@zyujs
Copy link
Owner

zyujs commented Mar 27, 2022

等我有空的时候加上试试(拖延症

@xiaobailoves
Copy link
Author

等我有空的时候加上试试(拖延症

我已经实现了,,,
在92行下面插入
imgs = [a.replace('pbs.twimg.com','cf路线') for a in imgs]
就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants