gist python format (5 stars) just basic format and function

Job ID: 36482918

Budget: $2 – $8 USD

need to do a Github API to query a user’s publicly available gists.

first run, it should display a listing of all the user’s publicly available gists.

2nd and then after run should list any gists that have been published since the last run.

would like to add a "-fresh" flag to clear out and start over

There is my script - that needs a function above and nice formating?
------------------------------------


import requests
import datetime
User = "ejbest66"
url = "ejbest66/gists".format(User=User)
headers = {
'Accept': 'application/vnd.github+json',
'Authorization': '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',
'Cookie': '_octo=GH1.1.601436761.1682278460; logged_in=no'
}
time = datetime.datetime.now().isoformat()
try:
with open ("time.txt") as my_file:
time = my_file.read().splitlines()[0]
url = url + "?since=" + str(time)
response = requests.request("GET", url, headers=headers)
print(response.text)
f = open("time.txt", "w")
f.write(time)
f.close()
except:

f = open("time.txt", "w")
f.write(time)
f.close()
response = requests.request("GET", url, headers=headers)
print(response.text)




Have a way to screen share? This will help lots!

There is hope you can give your “best” price; unemployed, and have cancer with bills backing up, $10 possible? Please note $10 is the max total that I can handle for this (doing hourly reduces % fee). Will leave a Glowing paragraph of feedback 5 stars : - )

My funds are low but will pay quick and leave 5 stars. Please give your best possible for your bid ? (something reasonable?) Please note there is hope we can mutually complete this task; we can leave each other nice comments and 5 stars for each? Look at feedback on my profile, feedback I left for many others. Here is the project:

SINCERELY WOULD BE NICE TO MEET YOU PLEASE

ANY THOUGHTS ? Please note project is due in two hours as this projects deadline, as this is needed if we can get some done - then we can talk about next steps and 5 stars and another job also. If this is a good one and we are "successful"; would need a couple others setup, but will handle one at a time? Can you do this for something reasonable in a couple hours? thoughts ?
Related categories: Python GitHub