How to automate Notion with Python | Notion API Tutorial

Поділитися
Вставка
  • Опубліковано 1 лют 2025

КОМЕНТАРІ • 44

  • @higornunes3525
    @higornunes3525 2 роки тому +4

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

  • @silkogelman
    @silkogelman 2 роки тому +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.

  • @wisamahmed251
    @wisamahmed251 Рік тому +2

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

  • @HealthierDAYBYTAY
    @HealthierDAYBYTAY 2 місяці тому

    Omg I really didn’t expect to find a video for this. Thank you, this is exactly what I was looking for!! I should have know but really didn’t expect to find this lol

  • @sabrinawst
    @sabrinawst Рік тому +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 Рік тому

      How did you do it bro?

    • @sabrinawst
      @sabrinawst Рік тому +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 Рік тому

      @@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 Рік тому

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

  • @richkirschenbaum6957
    @richkirschenbaum6957 2 роки тому

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

  • @devworks8787
    @devworks8787 Рік тому +2

    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

  • @maths_data-science_avec_alizee
    @maths_data-science_avec_alizee Місяць тому

    Thank you so much for the tutoriel !! I was lost with the documentation 😅❤️

  • @backest9312
    @backest9312 2 роки тому +2

    Interesting tutorial !! Always nice videos

  • @hamiltonrose9500
    @hamiltonrose9500 18 днів тому

    Very insightful, I was wondering if you could make one where the properties of a database item are not numerical or strings but are categorical like the selection box or the categories property. I would like to build a python program that gets all properties and then works with them.

  • @pon00050
    @pon00050 2 роки тому +5

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

    • @Finkelfunk
      @Finkelfunk 2 роки тому

      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 2 роки тому +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 2 роки тому +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 2 роки тому +1

      @@rensan6749 Thank you for sharing that example.

  • @spamblocker3402
    @spamblocker3402 Рік тому

    Really Great ! Thanks

  • @abrahamisaac-k5x
    @abrahamisaac-k5x Рік тому +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?

  • @MonLes-xt7gc
    @MonLes-xt7gc Рік тому

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

  • @yildirimakbal6723
    @yildirimakbal6723 Рік тому

    Bu işi biliyorsun reyiz.

  • @cgndev
    @cgndev Рік тому +1

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

    • @88vch
      @88vch 10 місяців тому

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

  • @shrvn110
    @shrvn110 Рік тому

    thank you!

  • @jmarkxx
    @jmarkxx 7 місяців тому

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

  • @eldofrederick1269
    @eldofrederick1269 7 місяців тому

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

  • @acidjumps
    @acidjumps Рік тому

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

  • @vuquangtruong5950
    @vuquangtruong5950 Рік тому

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

  • @punisherjones6795
    @punisherjones6795 2 роки тому

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

  • @antonkalashnikov4062
    @antonkalashnikov4062 Рік тому

    got keyerror 'results ' when executed def get_pages😢

  • @RunYourLuck
    @RunYourLuck Рік тому

    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 10 місяців тому

      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.

  • @ifthikhanmohamed1681
    @ifthikhanmohamed1681 Рік тому

    make digits classification with pytorch

  • @girogiro-vh5pz
    @girogiro-vh5pz 10 місяців тому

    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?

  • @ХайлайтыДлиннойВоли

    All my homies use Obsidian

    • @faizyusuf2470
      @faizyusuf2470 Рік тому +2

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

  • @ΓιώργοςΓροσδάνης

    Can you put subtitles in Greek?

  • @Cuway316
    @Cuway316 Місяць тому

    Dec, 26, 2024: Python is no more supported, I can't find it in Database -> Query a database -> Languages

  • @shubhamshendre2153
    @shubhamshendre2153 2 роки тому

    Need internship.