Python Forum
Download file from Private GitHub rep
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Download file from Private GitHub rep
#1
Hi,

First of all, I am a Python newbie. I am trying to download a file from private Github repo

import requests
from requests.auth import HTTPBasicAuth
r=requests.get(url="https://dev.xxxxxxxx.com/gitlab/development/xxxxx/-/raw/develop/v6/xxxxx.DatabaseInstaller/Scripts/test.sql",auth=HTTPBasicAuth('[email protected]','mypassword'))
print(r.text)
it returns status code 200 but r.text not brining the actual content, instead an login HTML page with usename and password text box.

How can I get it to work?

Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to import Private Repo using setup.py Bob786 1 197 Sep-02-2021, 04:19 PM
Last Post: snippsat
  download with internet download manager coral_raha 0 467 Jul-18-2021, 03:11 PM
Last Post: coral_raha
  download file from url fernandosianet 3 841 Oct-29-2020, 03:22 AM
Last Post: bowlofred
  python 3 dns lookup private domain didact 1 634 Sep-19-2020, 06:01 PM
Last Post: bowlofred
  [split] Помощь по приватным ключам/Private key help sairam17519 0 623 Sep-07-2020, 12:55 PM
Last Post: sairam17519
  How can I download Python files from GitHub? bitcoin10mil 2 1,069 Aug-26-2020, 09:03 PM
Last Post: Axel_Erfurt
  Read content of GitHub file sridhar 5 1,813 Apr-29-2020, 11:49 PM
Last Post: sridhar
  PyDrive download file path MiniMinnow 0 1,691 Apr-28-2020, 03:01 PM
Last Post: MiniMinnow
  Помощь по приватным ключам/Private key help vlrubl777 5 2,909 Mar-15-2019, 08:16 PM
Last Post: vlrubl777
  when to make attributes private? sneakyimp 10 2,771 Jan-21-2019, 02:54 PM
Last Post: sneakyimp

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020