Googling While Coding – 2 : Parsing CSV file, extracting some URLs, and downloading images

I recently had a curious problem of parsing a CSV file, extracting some URLs, and downloading the image to my machine etc.

Anyway, I think it would be instructive to list the google searches involved in coming up with the final code:

  1. “write pandas dataframe to file”
  2. “split pandas column and get last column”
  3. “merge 2 dataframes pandas”
  4. “iterate over pandas dataframe rows”
  5. “python download image from url”
  6. “python write tab delimited file”

Some additional stuff since I wanted to work with only 1% of the data I had.

  1. “python get random number in range”

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s