python_wiki:requests

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
python_wiki:requests [2018/08/09 23:37]
billdozor [POST]
python_wiki:requests [2018/08/11 15:24]
billdozor [GET]
Line 90: Line 90:
 print("Comic Text: " + data['alt']) print("Comic Text: " + data['alt'])
 print("Comic Date: " + data['year'] + "-" + data['month'] + "-" + data['day']) print("Comic Date: " + data['year'] + "-" + data['month'] + "-" + data['day'])
 +print("Comic Image URL: " + data['img'])
 </code> </code>
  
Line 99: Line 100:
  
 -- The Current XKCD Comic -- -- The Current XKCD Comic --
-Comic Title: Complex Numbers +Comic Title: Pie Charts 
-Comic Text: I'm trying to prove that mathematics forms a meta-abelian groupwhich would finally confirm my suspicions that algebreic geometry and geometric algebra are the same thing+Comic Text: If you can't get your graphing tool to do the shadingjust add some clip art of cosmologists discussing the unusual curvature of space in the area
-Comic Date: 2018-8-3+Comic Date: 2018-8-10 
 +Comic Image URL: https://imgs.xkcd.com/comics/pie_charts.png
 </code> </code>
  
Line 110: Line 112:
 Send data in a POST request. Send data in a POST request.
  
 +\\
 Example: Use the httpbin.org site to delay 5 seconds (will replace with a more interesting example later) Example: Use the httpbin.org site to delay 5 seconds (will replace with a more interesting example later)
 <code bash> <code bash>
  • python_wiki/requests.txt
  • Last modified: 2019/05/25 23:50
  • (external edit)