restful-request

dev
pbr4nzfkh 9 months ago
parent 726a8795c7
commit f8055c0044

@ -0,0 +1,10 @@
import requests
from cppy.cp_util import *
url = 'http://127.0.0.1:5000/word_frequency'
data_list = extract_file_words(testfilepath)
data = {
'file': data_list
}
response = requests.post(url, json=data)
print(response.json()[:10])
Loading…
Cancel
Save