0

In my terminal, I can use curl command, such as:

$ curl 'http://www.sohu.com'

it will download the source code of the web page.

But I want to execute the curl in my python project. Whether is it can be realize?

rafalmp
  • 3,768
  • 3
  • 26
  • 34
qg_java_17137
  • 3,134
  • 7
  • 38
  • 70

1 Answers1

0

you can use the lib urllib2 to accomplish the same:

urllib2 docs

Sebastián Espinosa
  • 2,030
  • 12
  • 23