How to import a tab-separated text file into Xano?
Hi Xano Experts!
I am receiving some tab-separated text files from Amazon through a URL and I was wondering how I can import and parse the data into Xano? Would appreciate some guidance or resources :)
Jordan
Best Answer
-
Thanks for posting here in the community! I'm sure there are other ways to go about this, but at a high level, once you import your file, you could loop through each line and use the
split
filter. For the separator, you can just copy/paste the tab from your file and paste that into the separator field.I did a quick test with copying/pasting tab separated text and it worked.
You should be able to apply similar concepts as in this video for looping handling each of these arrays for each row, and creating key/value pairs.
Hope that helps get you started. Interested to hear how others might approach this!
Answers
-
hi @jakespirek , thanks for the reply.
Because my tsv file is pretty large, I was wondering if I could do a regex replacement instead and convert it to a csv file. Then, I will be able to use a csv stream function. Do you have any advice on this method?
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback