easy-scraping-tutorial icon indicating copy to clipboard operation
easy-scraping-tutorial copied to clipboard

The code doesn't work

Open frostant opened this issue 5 years ago • 1 comments

In the code of requests.post(). I don't why you code can only print('Hello there, !') even change Chinese into English.

data = {'firstname': '莫烦', 'lastname': '周'}
r = requests.post('http://pythonscraping.com/files/processing.php', data=data)
print(r.text)
# Hello there, 莫烦 周!

Best Wish!

frostant avatar Feb 09 '20 14:02 frostant

try this url http://pythonscraping.com/pages/files/processing.php the code on github is not correct

zhiyongLiu1114 avatar Jul 16 '20 02:07 zhiyongLiu1114