> For the complete documentation index, see [llms.txt](https://docs.yemreak.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yemreak.com/arsiv/programming/instagram-saved_collectionsjson-dosyasini-csv-dosyasina-cevirmek-ve-notiona-aktarmak.md).

# Instagram saved\_collections.json dosyasini csv dosyasina cevirmek ve notion’a a

instagram, programming, notion, database, csv, json, Instagram, saved\_collections.json

![](https://i.imgur.com/PFb2H77.png)

## Instagram Verilerinizi Hesabi Silme Arayuzunden Indirin

> 💡 Hesabinizi silmeyeceksiniz sadece verilerimi indir kismina kadar ilerleyeceksiniz

{% embed url="<https://help.instagram.com/181231772500920?cms_id=181231772500920>" %}

## Arindan indirilen `zip` icerisinden `saved_collections.json` dosyasini alin

* Bu dosya sizin kayitli olan `collections` iceriklerinisizi etiketlerinizle birlikte tutar
* Bu dosya ile islemlerimize devam edecegiz

## `saved_collections.json` dosyasini `csv`'e donusturmek

* `nodejs` kurulumu gerekir
* Alttaki javascript kodunu `saved_collections.json` dizininde calisitirin
* Veya kodun en alt satirindaki kisma dosya yolunu verin

```javascript
const { readFileSync, writeFileSync } = require("fs")

function jsonToCSV(json) {
	const csvRows = []
	csvRows.push("Name,Time,URL,Channel,Tags")

	for (const [key, value] of Object.entries(json)) {
		const tags = value.tags.join(",")
		const utcTime = value.time.toISOString()
		csvRows.push(`${value.name},${utcTime},${key},${value.channel},"${tags}"`)
	}

	return csvRows.join("\n")
}

function instagramCollectionToCSV(inputPath) {
	const content = JSON.parse(readFileSync(inputPath))

	const data = {}
	let tag = undefined
	content.saved_saved_collections.forEach(collection => {
		const url = collection.string_map_data.Name.href
		if (url === undefined) {
			const rawTag = collection.string_map_data.Name.value
			tag = Buffer.from(rawTag, "binary").toString("utf8")
			return
		}

		const name = url.split("/").slice(-2)[0]
		const time = new Date(collection.string_map_data["Added Time"].timestamp * 1000)
		const channel = collection.string_map_data.Name.value

		if (!data[url]) {
			data[url] = { channel, tags: [], time, name }
		}
		if (tag && !data[url].tags.includes(tag)) {
			data[url].tags.push(tag)
		}
	})

	const csv = jsonToCSV(data)
	const outputPath = path.replace(".json", ".csv")
	writeFileSync(outputPath, csv)
}

const path = "./saved_collections.json"
instagramCollectionToCSV(path)

```

## `csv` dosyasini Notion uzerine aktarmak

<details>

<summary>`import - csv` arayuzunu kullanin</summary>

<img src="https://i.imgur.com/XRHhPFH.png" alt="" data-size="original">

</details>

## Notion verilerini formatlamak

<details>

<summary>`channel` verisini `select` olarak saklamak</summary>

<img src="https://i.imgur.com/MaTkoi8.png" alt="" data-size="original">

</details>

<details>

<summary>`Tags` kismini `multi select` olarak saklamak</summary>

\- \`csv\` dosyasi otomatik formatlamaya uygun olacka sekilde hazirlanmistir - \`multi select\` yaptiginiz anda, \`tags\` degerleriniz eslesecektir

<img src="https://i.imgur.com/n9olF51.png" alt="" data-size="original">

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.yemreak.com/arsiv/programming/instagram-saved_collectionsjson-dosyasini-csv-dosyasina-cevirmek-ve-notiona-aktarmak.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
