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,988
  • 3
  • 28
  • 34
qg_java_17137
  • 3,310
  • 10
  • 41
  • 84

1 Answers1

0

you can use the lib urllib2 to accomplish the same:

urllib2 docs

Sebastián Espinosa
  • 2,123
  • 13
  • 23