Importing Questions & Answers #369
Replies: 6 comments 4 replies
-
Hi Sally! It is possible to automate that task using the Scoold API. Some glue code is probably required. The API is Swagger compatible so you could generate an API client for almost any programming language. Unfortunately, I don't have a step-by-step guide ready but I've seen other people do the same operation and usually, I would help them along the way. |
Beta Was this translation helpful? Give feedback.
-
If you manage to replicate the JSON schema of the StackOverflow data dump, then Scoold will be able to restore it if you package it as a .zip file. There is an explanation of the schema here: https://meta.stackexchange.com/questions/2677/database-schema-documentation-for-the-public-data-dump-and-sede The existing data in the Scoold database table will be overwritten if it contains the same ids from the imported backup. |
Beta Was this translation helpful? Give feedback.
-
@albogdano we are still trying out the import in between other jobs. We’ve manage to import the StackOverflow dump, not entirely consistently but it works. We are struggling however with the fact that the entire import is dumped into a single ‘default’ space. We tried adding a json field with information on the targeted ‘space’, but that did not work. Do you perhaps have any ideas how we could use the StackOverflow import workflow, while assigning questions/answers to their dedicated spaces? Or is this perhaps not a supported feature and would we need to use the API for that as well? |
Beta Was this translation helpful? Give feedback.
-
Here's an example:
Another way would be to use the create spaces API to programmatically create each space you want to attach to posts.~ |
Beta Was this translation helpful? Give feedback.
-
I’m trying to use the API to create/upload the questions. However, something is going wrong. I copied the The json:
|
Beta Was this translation helpful? Give feedback.
-
@albogdano ; I’m sorry I don’t understand what you are referring to. Perhaps a completely different question will help me out. What is the full endpoint URL I need to use to access the API that connects to my para database? I tried a GET request with the following information (I use R):
This returns an authentication problem (HTTP 401 Unauthorized). Which is similar to what I experienced when using the Python client. Basicly, I’m totally confused how to actually make API calls to my para backend from my local R / Python environment. |
Beta Was this translation helpful? Give feedback.
-
We are exploring the possibility of a transfer from our own Q&A system to Scoold. I cannot currently find any information on whether it is possible to import Q&A's in a automated and standardized format. With over 2,000 questions in our database we are not looking to add each Q&A manually.
Does anybody know where to begin looking for a solution? Has anyone already accomplished this?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions