I'm new on Python.
I'm looking for a way to convert a CSV file into a URL.
I have a CSV file : twitter_comment.csv and I am looking for a way to use it as a URL like this :
http://localhost:8080/twitter.
The url http://localhost:8080/twitter would contain the twitter_comment.csv file.
I have looked on the Internet and i didn't find with I was looking for.
I tried to do the following...
import requests
response = requests.get("twitter_comment.csv")
I got this error.
response = requests.get("twitter_comment.csv")
AttributeError: partially initialized module 'requests' has no attribute 'get' (most likely due to a circular import)
Do you think it is possible?
Thanks.