douban2notion's Introduction
douban2notion's People
Forkers
xuxiaolu175 annabellefight luyingpeng renchengcheng6 kaijiang-ai shuaking hyuax istik gzqd wumuye yiya12 starving-echo seaseablue jasminechem11 1144145618 ukingy icaruseye xieyingli qujingde lengruohanqiu2 cooorrrine pangtrickstar evelynlv58 mofuxiajin ligouhai595 15410224035 alliewy yzsusu qianyujinghui uiyng linxiaozhen81 blackxcw oerid zisnone cherrylover zhangs-dreamchaser uuz520 tetamao wkk0729 icyyyraven juyoua reallllyuan hongkongs lolipop73 unfu333 lilymm7 tjushawe huhansan11 tracy5113 ivincenlee ocean0808 hermitong kennynodie hanbing6228 yifinefine pengze89 didike003 kinpoe-ray dawn11111 123lishizhou georgefengp langandrat wanwanruby mitnick-3 tori0703 xiyangyangabc izrking clyvahua cedarrr a-hongchen irisnan drhyl kaikaihu lizwang31 bsdhc angelxw55555 qingtingliao zjwlww yuruoshui derekli4718 songlinchuifeng lexisliew kkkdskkd rajakuhyou zzgift caicai0122 lauhunghins alphacodeartist burningsky0306 gigichuu1996 shoumunan joyceaqr xiaofeng2222222 suoxiyu qinvxi ladykathy666 arimcqueen soundhorizon8977 qiqihhappy mieyangkuangxiangdouban2notion's Issues
电影页面“演员”属性点开卡死
“演员”属性用的multi-select,选项太多,点开会卡死。
建议截取前几个演员,或者用text格式。
无法修改MOVIE_NAME
body.properties.出版社.multi_select[2].id should be defined, instead was `undefined`.
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/notion_client/client.py", line 118, in _parse_response
response.raise_for_status()
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/httpx/_models.py", line 761, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '400 Bad Request' for url 'https://api.notion.com/v1/pages'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/runner/work/douban2notion/douban2notion/scripts/douban.py", line 255, in <module>
insert_book()
File "/home/runner/work/douban2notion/douban2notion/scripts/douban.py", line 239, in insert_book
notion_helper.create_page(
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/retrying.py", line 56, in wrapped_f
return Retrying(*dargs, **dkw).call(f, *args, **kw)
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/retrying.py", line 266, in call
raise attempt.get()
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/retrying.py", line 301, in get
six.reraise(self.value[0], self.value[1], self.value[2])
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/six.py", line 719, in reraise
raise value
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/retrying.py", line 251, in call
attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
File "/home/runner/work/douban2notion/douban2notion/scripts/notion_helper.py", line 213, in create_page
return self.client.pages.create(parent=parent, properties=properties, icon=icon)
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/notion_client/api_endpoints.py", line 208, in create
return self.parent.request(
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/notion_client/client.py", line 194, in request
return self._parse_response(response)
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/site-packages/notion_client/client.py", line 126, in _parse_response
raise APIResponseError(response, body["message"], code)
notion_client.errors.APIResponseError: body failed validation. Fix one:
body.properties.出版社.multi_select[2].id should be defined, instead was `undefined`.
body.properties.出版社.multi_select[2].name should be populated, instead was `""`.
豆瓣图书失败Process completed with exit code 1.
我是图书和观影一起设置的,然而观影没有任何问题,图书我设置了好几次都不成功,具体如下:
3s
Run python -u scripts/update_heatmap.py "book"
567e5581-d2ee-44a5-ad68-097c8f873622
fc163e8c-be7d-4748-b4d9-2c89370988bf
901ca57a-6977-47ef-b31b-58a615232830
b0071252-2bf7-4da8-98a7-9c9df44adcac
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/shutil.py", line 825, in move
os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: './OUT_FOLDER/notion.svg' -> './OUT_FOLDER/book/1720168701.svg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/runner/work/douban2notion/douban2notion/scripts/update_heatmap.py", line 30, in
image_file = move_and_rename_file(type)
File "/home/runner/work/douban2notion/douban2notion/scripts/update_heatmap.py", line 21, in move_and_rename_file
shutil.move(source_path, target_path)
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/shutil.py", line 845, in move
copy_function(src, real_dst)
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/shutil.py", line 444, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: './OUT_FOLDER/notion.svg'
Error: Process completed with exit code 1.
我看到报告没有/OUT_FOLDER/book/1720168701.svg这个文件,我查看我的目录后发现有的文件是1720023526.svg。
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.