11 lines
371 B
Python
11 lines
371 B
Python
import requests
|
|
import urllib.parse
|
|
|
|
gitlab_pat = 'glpat-mJPdjrPiHCTj2NqNZN_m'
|
|
headers = {'PRIVATE-TOKEN': gitlab_pat}
|
|
|
|
fname = 'src/handler/loaderHandler/loader.ts'
|
|
file_path = urllib.parse.quote(fname, safe='')
|
|
url = f'https://gitlab.ekeepa.co/api/v4/projects/10/repository/files/{file_path}/raw?ref=main'
|
|
r = requests.get(url, headers=headers)
|
|
print(r.text[500:2500])
|