Skip to content

Instantly share code, notes, and snippets.

@mgadzhi
Created May 14, 2015 10:35
Show Gist options
  • Save mgadzhi/74f3b6f8c35190266a8e to your computer and use it in GitHub Desktop.
Save mgadzhi/74f3b6f8c35190266a8e to your computer and use it in GitHub Desktop.
pycurl example
#!/usr/bin/env python
from pycurl import Curl
def write(*args):
pass
if __name__ == '__main__':
c = Curl()
c.setopt(c.URL, 'http://google.com')
c.setopt(c.WRITEFUNCTION, write)
for i in xrange(300):
c.perform()
c.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment