Python script to read http paramters from a file -


i new python , trying extract information twitter http responses. have collated list of infosec professionals on twitter, want extract description through automated way - preferrably python script.

the http request https://twitter.com/bpiatt

so request in code : urllib2.urlopen("https://twitter.com/$variable").read()

where variable name in file has list of names.

the issues have how store names in variable , make http request.

i can extract description field once have done this.

thanks in advance.

try this:

urllib2.urlopen("https://twitter.com/%s" % variable).read() 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -