# Python script for importing notes from Synology's Note Station into Joplin

**URL:** https://discourse.joplinapp.org/t/python-script-for-importing-notes-from-synologys-note-station-into-joplin/6605
**Category:** Apps
**Created:** [5 March 2020 21:32 UTC](https://discourse.joplinapp.org/t/python-script-for-importing-notes-from-synologys-note-station-into-joplin/6605 "2020-03-05T21:32:30Z")
**Posts on this page:** 4
**Page:** 2

<div class="post-metadata">

### Author: ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)
#### Post date: [14 March 2021 20:04 UTC](https://discourse.joplinapp.org/t/python-script-for-importing-notes-from-synologys-note-station-into-joplin/6605/22 "2021-03-14T20:04:35Z")

</div>

You should test if the `attachment_type` starts with `image`, unless you really want to only target png.

---

<div class="post-metadata">

### Author: ![JackGruber](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/jackgruber/32/3231_2.png) [@JackGruber](https://discourse.joplinapp.org/u/JackGruber)
#### Post date: [14 March 2021 20:38 UTC](https://discourse.joplinapp.org/t/python-script-for-importing-notes-from-synologys-note-station-into-joplin/6605/23 "2021-03-14T20:38:19Z")

</div>

You can use:

```auto
if attachment_type[:5] == "image":

```

---

<div class="post-metadata">

### Author: ![linus](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@linus](https://discourse.joplinapp.org/u/linus)
#### Post date: [17 January 2022 17:04 UTC](https://discourse.joplinapp.org/t/python-script-for-importing-notes-from-synologys-note-station-into-joplin/6605/24 "2022-01-17T17:04:28Z")

</div>

pip joplin-api is no longer available. Any thoughts?

---

<div class="post-metadata">

### Author: ![Marph](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/marph/32/10800_2.png) [@Marph](https://discourse.joplinapp.org/u/Marph)
#### Post date: [19 January 2022 17:59 UTC](https://discourse.joplinapp.org/t/python-script-for-importing-notes-from-synologys-note-station-into-joplin/6605/25 "2022-01-19T17:59:23Z")

</div>

You could give [Jimmy: A Joplin Import Tool](https://discourse.joplinapp.org/t/jimmy-a-joplin-import-tool/38503) a try.

[Previous page](https://discourse.joplinapp.org/t/python-script-for-importing-notes-from-synologys-note-station-into-joplin/6605.md?page=1)
