Announcement bot for sakugabooru on weibo.
elnathmojo / sakugabot Goto Github PK
View Code? Open in Web Editor NEWSakugabooru Announcement Bot
Home Page: https://sakugabot.pw/
Sakugabooru Announcement Bot
Home Page: https://sakugabot.pw/
Announcement bot for sakugabooru on weibo.
复现例子:
https://sakugabot.pw/bot/hub/tag/haikyuu!!_5Friku_5Fvs._5Fkuu/change/
https://sakugabot.pw/bot/hub/tag/d.n_5Fangel/change/
tag含有dot符号时就会500错误,将url的 . 替换成_2E也是一样的结果。
仅从ID上判断已经落后600+条了,以目前的投稿速率和微博API限制的情况上看,差距只会越拉越大无法追上,对时效性方面的影响很大。所以是否应该做出一些处理从而使库存快速消耗,如:
手动标记跳过部分已投稿过的老作品(新投稿中占比很大的一部分是旧稿微调后重投的)
设立新号(但各种层面上的成本都很大)
"[(2019-06-04 03:00:50][weibo_service.py:127][CRITICAL][bot.services.weibo]: Post id[79389]: 20032 Your Weibo has been released successfully. At present, there may be a delay in server data synchronization, so please wait patiently, thank you very much.; Unknown Error."
从前段时间开始微博收紧了登录政策,现在网页版登录需要扫码/短信/私信验证三选一,客户端登录也需要手机验证,导致我现在没法查收评论反馈和私信情况……能否有较好的解决方案。
{
"0": "[(2019-05-22 01:00:55][weibo_service.py:127][CRITICAL][bot.services.weibo]: Post id[78345]: 20053 Your Weibo has been successfully released and needs manual review for 3 minutes. Please be patient.",
"1": "If you have any questions, please contact the exclusive customer service, or call 4000960960, more help please enter the customer service center.; Unknown Error."
}
78345tag信息中含有政治敏感词汇,返回了正在审核信息(猜测原因,因为看不到更早之前的日志),导致服务端判定未上传成功而不断重复发送此稿件,但在人工审核通过后实际是上传成功的
using argparse
优先使用MAL匹配作品名更容易导致错误匹配的情况发生,因为booru用的英文作品名tag在MAL中虽然可以搜索到但在搜索页面显示的可能是罗马音名,导致程序判断失误,如《海兽之子》的情况。优先KGS匹配也许更好一些。
{ "1770": "[(2020-02-09 18:30:10][info_service.py:226][INFO][bot.services.info]: Names[('children of the sea',)] got one matching result in MyAnimeList search results. info_dict: {'mal_aid': 39290, 'name_en': 'Children', 'name_ja': 'CHILDREN'}", "1771": "[(2020-02-09 18:30:10][tasks.py:46][INFO][bot.tasks]: Tag[children_of_the_sea]: Getting result from BangumiCopyrightInfoService with names ('children of the sea', 'CHILDREN')", "1773": "[(2020-02-09 18:30:11][info_service.py:99][INFO][bot.services.info]: Name[CHILDREN] got search response from Bangumi.", "1774": "[(2020-02-09 18:30:11][info_service.py:218][INFO][bot.services.info]: Names[('children of the sea', 'CHILDREN')] got 19 search results from Bangumi.", "1775": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.0; original_names: ('children of the sea', 'CHILDREN'); target_names: ['海獣の子供', '海兽之子']; bgm_sid: 253997,", "1776": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.358974358974359; original_names: ('children of the sea', 'CHILDREN'); target_names: ['Moomins and the Comet Chase', '姆明谷的彗星来袭']; bgm_sid: 172220,", "1777": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.8387096774193549; original_names: ('children of the sea', 'CHILDREN'); target_names: ['Children of Ether', '以太之子']; bgm_sid: 220920,", "1778": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.7656521739130435; original_names: ('children of the sea', 'CHILDREN'); target_names: ['絶対可憐チルドレン~愛多憎生!奪われた未来?~', '绝对可怜children OVA']; bgm_sid: 7383,", "1779": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.9588888888888889; original_names: ('children of the sea', 'CHILDREN'); target_names: ['徒然チルドレン', '徒然Children']; bgm_sid: 208754,", "1780": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 2; original_names: ('children of the sea', 'CHILDREN'); target_names: ['CHILDREN', '拉链孩儿']; bgm_sid: 157900,", "1781": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.5024324324324325; original_names: ('children of the sea', 'CHILDREN'); target_names: ['FINAL FANTASY VII ADVENT CHILDREN', '最终幻想VII:降临之子']; bgm_sid: 1890,", "1782": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.24489795918367346; original_names: ('children of the sea', 'CHILDREN'); target_names: ['Tom and Jerry: A Fundraising Adventure', '猫和老鼠 筹款冒险记']; bgm_sid: 262706,", "1783": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.0; original_names: ('children of the sea', 'CHILDREN'); target_names: ['絶対可憐チルドレン', '楚楚可怜超能少女组']; bgm_sid: 5475,", "1784": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.0; original_names: ('children of the sea', 'CHILDREN'); target_names: ['ファンタジックチルドレン', '奇幻旅程']; bgm_sid: 3188,", "1785": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.0; original_names: ('children of the sea', 'CHILDREN'); target_names: ['星を追う子ども', '追逐繁星的孩子']; bgm_sid: 9911,", "1786": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.0; original_names: ('children of the sea', 'CHILDREN'); target_names: ['おおかみこどもの雨と雪', '狼的孩子雨和雪']; bgm_sid: 28440,", "1787": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.0; original_names: ('children of the sea', 'CHILDREN'); target_names: ['世界名作童話 アラジンと魔法のランプ', '世界名作童话 阿拉丁与魔法神灯']; bgm_sid: 113665,", "1788": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.0; original_names: ('children of the sea', 'CHILDREN'); target_names: ['聖戦ケルベロス 竜刻のファタリテ', '龙心战纪']; bgm_sid: 167028,", "1789": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.26666666666666666; original_names: ('children of the sea', 'CHILDREN'); target_names: ['Psiconautas, los niños olvidados', '被遗忘的孩子']; bgm_sid: 196587,", "1790": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.0; original_names: ('children of the sea', 'CHILDREN'); target_names: ['クジラの子らは砂上に歌う', '泥鲸之子们在沙地上歌唱']; bgm_sid: 205113,", "1791": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.2857142857142857; original_names: ('children of the sea', 'CHILDREN'); target_names: ['Les enfants de la pluie', '水与火的传说']; bgm_sid: 211221,", "1792": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.3333333333333333; original_names: ('children of the sea', 'CHILDREN'); target_names: ['The Moomins', '姆明一族']; bgm_sid: 172210,", "1793": "[(2020-02-09 18:30:11][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.3870967741935484; original_names: ('children of the sea', 'CHILDREN'); target_names: ['The Selfish Giant', '自私的巨人']; bgm_sid: 243335,", "1794": "[(2020-02-09 18:30:11][info_service.py:226][INFO][bot.services.info]: Names[('children of the sea', 'CHILDREN')] got one matching result in Bangumi search results. info_dict: {'bgm_sid': 157900, 'name_ja': 'CHILDREN', 'name_zh': '拉链孩儿', 'description': '在一座满是工厂跟高耸烟囱的城市里,灰蒙蒙的空气充斥并填塞着每个青春的脸庞,小朋友一个个的被编上了号码,送进了名叫「学校」的工厂之中,试图制造出一个个一模一样,乖又听话的好孩子产品… 《拉链孩儿》(CHILDREN )采用的象征、暗示、隐喻等表现手法,表现了工业社会下孩子的畸形发展教育,导演撕裂了平等、自由、公正的虚假、繁华的教育表象,用拉链嘴象征孩子们缺乏表达的话语权,复制、同化的教育使孩子缺乏个体存在感。短片最后,孩子们使用暴力冲出了教育体制的束缚,一个孩子为了拯救一只象征生命力的狗狗而丧失生命,但他发出了最后的笑声,因为他终于获得了自由,天性获得了解放,再也没有拉链束缚他的生命。这部动画让我们思考人本身的存在价值,我们向往着尊重人性的理想境界。人,只有在他的个性中才能得到拯救,然而现实社会用各种方式剥夺了人的个性,人性越来越被社会所异化而失去本性..'}", "1795": "[(2020-02-09 18:30:11][tasks.py:46][INFO][bot.tasks]: Tag[children_of_the_sea]: Getting result from GoogleKGSCopyrightInfoService with names ('children of the sea', 'CHILDREN', '拉链孩儿')", "1797": "[(2020-02-09 18:30:14][info_service.py:99][INFO][bot.services.info]: Name[CHILDREN] got search response from Google KGS.", "1801": "[(2020-02-09 18:30:16][info_service.py:166][INFO][bot.services.info]: Names[('children of the sea', 'CHILDREN', '拉链孩儿')] got 8 search results from Google KGS.", "1802": "[(2020-02-09 18:30:16][info_service.py:141][DEBUG][bot.services.info]: ratio: 2; original_names: ('children of the sea', 'CHILDREN', '拉链孩儿'); target_names: ['海兽之子', '海獣の子供', 'Children of the Sea']; kgs_url: http://g.co/kg/m/06zpfz4,", "1803": "[(2020-02-09 18:30:16][info_service.py:141][DEBUG][bot.services.info]: ratio: 2; original_names: ('children of the sea', 'CHILDREN', '拉链孩儿'); target_names: ['海兽之子', '海獣の子供', 'Children of the Sea']; kgs_url: http://g.co/kg/g/11h5rzdw85,", "1804": "[(2020-02-09 18:30:16][info_service.py:141][DEBUG][bot.services.info]: ratio: 2; original_names: ('children of the sea', 'CHILDREN', '拉链孩儿'); target_names: ['Children Of The Sea', 'Children of the Sea (Live) [2009 Remaster]']; kgs_url: http://g.co/kg/g/1s05sfds1,", "1805": "[(2020-02-09 18:30:16][info_service.py:141][DEBUG][bot.services.info]: ratio: 2; original_names: ('children of the sea', 'CHILDREN', '拉链孩儿'); target_names: ['Children of the Sea']; kgs_url: http://g.co/kg/m/0bb6rb3,", "1806": "[(2020-02-09 18:30:16][info_service.py:141][DEBUG][bot.services.info]: ratio: 2; original_names: ('children of the sea', 'CHILDREN', '拉链孩儿'); target_names: ['Children of the Sea']; kgs_url: http://g.co/kg/g/11bw61rdh4,", "1807": "[(2020-02-09 18:30:16][info_service.py:141][DEBUG][bot.services.info]: ratio: 2; original_names: ('children of the sea', 'CHILDREN', '拉链孩儿'); target_names: ['Children']; kgs_url: http://g.co/kg/g/1q5j4nkk3,", "1808": "[(2020-02-09 18:30:16][info_service.py:141][DEBUG][bot.services.info]: ratio: 2; original_names: ('children of the sea', 'CHILDREN', '拉链孩儿'); target_names: ['Children']; kgs_url: http://g.co/kg/m/0d4tr5,", "1809": "[(2020-02-09 18:30:16][info_service.py:141][DEBUG][bot.services.info]: ratio: 0.9121052631578948; original_names: ('children of the sea', 'CHILDREN', '拉链孩儿'); target_names: ['孩子们', 'カエル少年失踪殺人事件', 'Children...']; kgs_url: http://g.co/kg/m/0gjdwzp,", "1810": "[(2020-02-09 18:30:16][info_service.py:176][INFO][bot.services.info]: Names[('children of the sea', 'CHILDREN', '拉链孩儿')] got one matching result in Google KGS search results. info_dict: {'kgs_url': 'http://g.co/kg/m/06zpfz4', 'description': '《海兽之子》是由五十岚大介所创作的日本漫画,于2006年2月号至2011年11月号间在小学馆漫画雑志‘月刊IKKI’连载。是五十岚首部长编作品。曾荣获第38回日本漫画家协会赏优秀赏、第13回文化厅媒体艺术祭漫画部门优秀赏。2019年6月改编的同名动画电影在日本上映。', 'name_zh': '海兽之子', 'name_ja': '海獣の子供', 'name_en': 'Children of the Sea', 'wiki_zh': 'https://zh.wikipedia.org/zh-cn/%E6%B5%B7%E7%8D%B8%E4%B9%8B%E5%AD%90', 'wiki_ja': 'https://ja.wikipedia.org/wiki/%E6%B5%B7%E7%8D%A3%E3%81%AE%E5%AD%90%E4%BE%9B', 'wiki_en': 'https://en.wikipedia.org/wiki/Children_of_the_Sea_(manga)'}", "1811": "[(2020-02-09 18:30:16][tasks.py:46][INFO][bot.tasks]: Tag[children_of_the_sea]: Getting result from AtwikiInfoService with names ('CHILDREN',)", "1812": "[(2020-02-09 18:30:17][info_service.py:591][INFO][bot.services.info]: Name[CHILDREN] got search response from AtWiki.", "1813": "[(2020-02-09 18:30:17][info_service.py:166][INFO][bot.services.info]: Names[('CHILDREN',)] got 1 search results from AtWiki.", "1814": "[(2020-02-09 18:30:17][info_service.py:171][INFO][bot.services.info]: Names[('CHILDREN',)] got no matching result in AtWiki search results.", "1815": "[(2020-02-09 18:30:17][tasks.py:46][INFO][bot.tasks]: Tag[children_of_the_sea]: Getting result from ASDBCopyrightInfoService with names ('CHILDREN',)", "1816": "[(2020-02-09 18:30:17][info_service.py:99][INFO][bot.services.info]: Name[CHILDREN] got search response from Anime Staff Database.", "1817": "[(2020-02-09 18:30:17][info_service.py:166][INFO][bot.services.info]: Names[('CHILDREN',)] got 0 search results from Anime Staff Database.", "1818": "[(2020-02-09 18:30:17][info_service.py:171][INFO][bot.services.info]: Names[('CHILDREN',)] got no matching result in Anime Staff Database search results.", "1821": "[(2020-02-09 18:30:17][tasks.py:40][INFO][bot.tasks]: Info [name_ja: CHILDREN] is being added to Tag[children_of_the_sea]. Overwrite: False" }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.