Home > Back-end >  Fetching raw data from github wiki
Fetching raw data from github wiki

Time:12-27

How do I fetch raw github wiki file that contains other files?

In my wiki I have 8 links that redirect to other wiki files in the same repo. I got to fetch each individual files with:

https://raw.githubusercontent.com/wiki/user/repo/file.md

But how do I fetch the main file with 8 links? I need it to get names to fetch them later on individually as done above.

For better explanation, whenever I press on wiki page I get:

file1
file2
file3
file4
etc...

so how do I fetch this page? Thank you

CodePudding user response:

If I clone a wiki repository (git clone https://github.com/YOUR_USERNAME/YOUR_REPOSITORY.wiki.git), like the thinkaurelius/titan one, I get a Home.textile file as the homepage of the wiki.

Clone your repository wiki, and you will see your homepage filename, that you can use for getting its raw content.

  • Related