How to automate Notion with Python | Notion API Tutorial

Sdílet
Vložit
  • čas přidán 6. 09. 2024

Komentáře • 37

  • @silkogelman
    @silkogelman Před rokem +5

    Fun and clear tutorial, thank you Patrick! 🙏😀
    About the hard to read dictionary at 9:33: Pydantic makes my world a happier place regarding API data consumption and providing it with data.
    Might be interesting to include in a future tutorial.

  • @higornunes3525
    @higornunes3525 Před rokem +3

    I've been struggling with this for the past two days, thank you! Your video came out just in time!

  • @sabrinawst
    @sabrinawst Před rokem +3

    Thank you !!! I know nothing about Python and I love notion. I wanted to challenge myself more so I try to use python to do web scraping then send the data to Notion. Your tutorial helps me A LOT!!! Thank you so much! 🎇🎇🎇🎇

    • @munawwarshaikh8010
      @munawwarshaikh8010 Před 11 měsíci

      How did you do it bro?

    • @sabrinawst
      @sabrinawst Před 11 měsíci +3

      @@munawwarshaikh8010 After some time, I forgot some details. The process is mainly divided into two steps. The first step is to use Python to crawl the data you need. The next step is to follow this tutorial to convert the crawled data into Notion. Good Luck!!

    • @munawwarshaikh8010
      @munawwarshaikh8010 Před 11 měsíci

      @@sabrinawst thanks, that's all I needed. Do you remember how you stored the data you crawled using python? Like in csv, json, txt, etc.

    • @sabrinawst
      @sabrinawst Před 11 měsíci

      @@munawwarshaikh8010 ummm...I just checked my old files, and I don’t think I stored them anywhere specific. I looked at the Python code I used for web scraping, and it contained the following lines:
      import requests
      from bs4 import BeautifulSoup
      import re
      However, as I mentioned earlier, I’m not familiar with Python at all. So, I found this code online. From what I remember, I didn’t store the data anywhere. Instead, I directly transferred it to Notion. Unfortunately, I can’t provide you with more detailed information right now because I can’t find the second part of the code (I have no idea where I saved it LOL). If I find it later, I’ll share it with you.

  • @wisamahmed251
    @wisamahmed251 Před rokem +2

    I've been needing a tutorial for this for months. Thank you so much.

  • @devworks8787
    @devworks8787 Před rokem +1

    i finally hit a gold to learn Python. I just loved how Patrick's Python intermediate course in freecodecamp channel. and from then looking into his channel which has all great content

  • @Rainquiller
    @Rainquiller Před 2 měsíci

    hi thanks for this! question. how do I add data on next row?

  • @user-st8ul1st4v
    @user-st8ul1st4v Před 11 měsíci +1

    Great video, thank you! How would you extend your python code to manage an empty or null field in your notion page? for example, somehow, you forgot to give your blog entry a Title?

  • @pon00050
    @pon00050 Před rokem +5

    I am asking because I am ignorant.
    What are some use cases that this will be useful in?

    • @Finkelfunk
      @Finkelfunk Před rokem

      I mean he said he uses this to collect all of his blog posts. For Kanban Boards you could automatically create new ToDo items, you could use it for Uni-Notes. There's hundreds of possible uses.

    • @pon00050
      @pon00050 Před rokem +5

      @@Finkelfunk I don't understand the utility of collecting all of his blog posts using Notion API. All the blog posts are already on his blog. Why bother collecting? for back-up purposes? Isn't that being redundant? I'd imagine his hosting service or something is probably already backing up. Please enlighten me. There must be something that I don't understand.

    • @rensan6749
      @rensan6749 Před rokem +2

      I'm currently using a notion integration to automate currency conversions using another API to get the exchange rates at a certain date and update the whole database everyday. It's mainly to save time for my team so they don't have to retrieve each info manually. I also came across another project that generates/updates burndown charts, which is a hassle to do manually and natively on Notion. I imagine there must be a lot of other use cases much more complexe.

    • @pon00050
      @pon00050 Před rokem +1

      @@rensan6749 Thank you for sharing that example.

  • @eldofrederick1269
    @eldofrederick1269 Před 2 měsíci

    Is there any way to pull my markdown files folderwise from Joplin into notion using python api?

  • @backest9312
    @backest9312 Před rokem +2

    Interesting tutorial !! Always nice videos

  • @richkirschenbaum6957
    @richkirschenbaum6957 Před rokem

    Terrific Lesson!!! This Is The Absolute Best Video on the Notion API With Python. Thank You Soooooooo Very Very Much.

  • @cgndev
    @cgndev Před 8 měsíci +1

    Thanks for your Tutorial.. i can't see python source example in notion's reference page... is it ok?

    • @88vch
      @88vch Před 5 měsíci

      I am a bit curious about this too. Wonder if they stopped supporting python

  • @MonLes-xt7gc
    @MonLes-xt7gc Před rokem

    Thank you for the awesome content, Patrick! What framework do you use to build your website?

  • @spamblocker3402
    @spamblocker3402 Před rokem

    Really Great ! Thanks

  • @antonkalashnikov4062
    @antonkalashnikov4062 Před 11 měsíci

    got keyerror 'results ' when executed def get_pages😢

  • @yildirimakbal6723
    @yildirimakbal6723 Před rokem

    Bu işi biliyorsun reyiz.

  • @acidjumps
    @acidjumps Před rokem

    How do I make the database update automatically that way? let's say I update a database, I want the other database to update

  • @shrvn110
    @shrvn110 Před rokem

    thank you!

  • @punisherjones6795
    @punisherjones6795 Před rokem

    Hi, can do you a tutorial on building a chatbot using ontology? From scratch Without API

  • @RunYourLuck
    @RunYourLuck Před rokem

    New to Python so I may not have anything setup correctly. But getting 'Import "requests" could not be resolved from source'. Anyone know why?

    • @tchag9951
      @tchag9951 Před 5 měsíci

      You have to Import request. If you use vs Code it is possible that you installed it in the wrong Interpreter. You can switch it.

  • @vuquangtruong5950
    @vuquangtruong5950 Před rokem

    I really love your video. Can you make tutorial how to access Audacity by Python code.

  • @ifthikhanmohamed1681
    @ifthikhanmohamed1681 Před rokem

    make digits classification with pytorch

  • @girogiro-vh5pz
    @girogiro-vh5pz Před 5 měsíci

    Hello. I liked your very nice-looking guide on how to use Python to handle a Notion database. A need arose for me after importing an Evernote Notebook containing 843 notes into Notion, and nearly every record in the resulting Notion database begin duplicated. To remove these duplicates from within Notion would be very tedious.
    Therefore it seems that a Python program will do the job. This looks like a fun thing for me to do but I don't have the spare time to spend on this. And my need is not particularly urgent🙂 * Has anybody already written a Python program to do remove duplicates from a Notion database?

  • @user-qi2kt8ow5r
    @user-qi2kt8ow5r Před rokem +4

    All my homies use Obsidian

    • @faizyusuf2470
      @faizyusuf2470 Před rokem +2

      Obsidian for knowledge taking, and Notion for habit and routine development.

  • @user-sl2hk5ue6b
    @user-sl2hk5ue6b Před rokem

    Can you put subtitles in Greek?

  • @shubhamshendre2153
    @shubhamshendre2153 Před rokem

    Need internship.