Git Product home page Git Product logo

douban2notion's Introduction

关于

  • 👋 嗨,我叫马林康,目前工作生活在北京,是一名Android工程师 👨🏻‍💻
  • ❤️ 我喜欢🏃🏻跑步 、📖读书 和🎬看电影
  • ✍️ 会在个人博客上记录生活和学习笔记,也会活跃在一些社交媒体上。

GitHub Twitter Telegram

douban2notion's People

Contributors

actions-user avatar malinkang 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

douban2notion's Issues

无法修改MOVIE_NAME

感谢作者开源的插件,在部署过程,发现:
修改了MOVIE_NAME的属性值:
image
但是显示还是默认的:
image

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 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.