I am working in private repository that has Wiki pages with zip files that was pushed to Wiki only not to main repo. So now I'm trying to arrange a Powershell script that download zip file from this Wiki.
I followed the script at: StackeOverflow: PowerShell to download Zip file from GitHub API and everywhere else but always, always get this 404 Not found error when Invoke-WebRequest try to actually download file.
I have a direct link to zip file: https://github.com/enterprise/repo/wiki/Folder/file.zip (I assure you this link download file from any web browser without any hiccups. From Chrome it always succeed)
but whatever credentials I enter or whatever I change the download link to - it always fails with 404 Not Found error. In Chrome browser 'Network' tab I see that it does redirect to https://raw.githubusercontent.com/wiki/enterprise/repo/Folder/file.zip?token=ASZER2VYQDOVBN46TXVK2BWTU3 but it does not happened in Powershell script (?)
I really appreciate a small example of Powershell script for private repo.
Thank you !
Related
newb alert. I'm new to GitHub so this might be a dumb question. I was creating a web scraper with scrapy on PyCharm & asked my friend for some help so I uploaded it into GitHub. Everything went fine until I realized that 1. the entire file was moved into a local file (previously was inside of pycharm & 2. it wouldn't run. When I inspected both files I came to find that there was only one key thing missing. There was a 'scrapy.cgf' file that was the only file not moved into the new local file.
What can I do to fix this?
I'm trying to install PostgreSQL via Ansible on a Windows machine, meaning I'll need a URL. I know this shows me a download link, and I can usually right-click on the link and get the actual URL. Clocking on that line takes you to this page, and right-clicking on the start the download now link on that page doesn't give me a direct URL either, but a link to a javescript. I even looked a the HTML source in Brave browser Developer tools. I even found an example here, but the ftp url shown there doesn't have Windows installers. I also searched for "Postgres download URL" here, to no avail.
What the heck is the actual download URL, say for version 13?
On the page you linked to, if you click on the "Download" it takes you to this page](https://www.enterprisedb.com/postgresql-tutorial-resources-training?cid=437) which typically starts the download automatically.
However, there is a message
If your download does not begin automatically, start the download now
which is the direct link to the installer (in this case for 13.3)
how does one download the compiled file from a github project.
For example I was trying to download sandboxie and was taken here where I managed to download the zip, but there is no exe in the zip:
https://github.com/sandboxie/sandboxie (1)
I then searched for the installation package via google and through https://m.majorgeeks.com/files/details/sandboxie.html managed to download the compiled exe. Checking the link location for the exe, it points to here:
https://github-releases.githubusercontent.com/254327261/440a6e00-7d97-11eb-9289-9e5f62cb44fe?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210323%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210323T060753Z&X-Amz-Expires=300&X-Amz-Signature=c3092c5eac115a0cb9ccfe5beafc58d8fdac12288c19adba380de01dc58e95b2&X-Amz-SignedHeaders=host&actor_id=81162979&key_id=0&repo_id=254327261&response-content-disposition=attachment%3B%20filename%3DSandboxie-Classic-x64-v5.49.0.exe&response-content-type=application%2Foctet-stream
(2)
How would I get from (1) to (2) without having to google for the compiled file. Is there a location I have to go in github or do I have run some commands? I am also not a familiar with compiling exe's from the source files.
Actually you can't get from (1) to (2) because they are not same repository.
This is the repository the second link came from repository if you go to Releases section releases you will find the downloading link in the assets.
To make sure that this is the same repository in the second link you will find repo_id=254327261 and it is the same id of the repo I gave you the link above
This is the first time I've tried uploading files to a folder in GitHub, and I seem to be having some issues.
I've made a folder: https://github.com/sam-mahdi/SAVUS/tree/master/Test_Files..
And I'm trying to upload files to it.
However, the files just don't seem to upload, it permanently says "uploading 1 of 1 file", but never does anything.
If I click commit, it tells me to upload something.
If I try to upload another file, it says "Something went really wrong, and we can’t process that file.", and I refresh the page.
The strange part is, I have no issue uploading multiple files (the same files) in the main repository, I only have this problem trying to upload it in the folder I made.
I've tried to close and open my browser. I am using chrome for reference (I saw online sometimes you get this issue if you use firefox).
Am I doing something wrong? or missing something?
First, if possible, avoid '..' at the end of your TestFiles.. folder.
Then try again uploading those files, to check if those trailing '..' were the issue.
I am trying to download a file to a remote server from the website adf.ly, but when I try wget it downloads the website html code. Help?
First start the download on your own computer (and watch the ad and everything). Then once its downloading the file, you should be able to get the URL where its downloading from by looking at your "Downloads" section (in Chrome, for example). Copy that URL and use it to download from the remote server.
Make sure you are wget'ing the link to the actual file, not the ad.fly link. Ad.fly has it setup this way to force you to watch their ads.