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
Post a Comment