RealMassive-Archive / prospector

how we prospect, mine, and refine CRE nuggets and turn them into listings
0 stars 0 forks source link

Prospector Upload Script #21

Closed chrisivester closed 10 years ago

chrisivester commented 10 years ago

We need a script written that attaches two pictures from a CSV to an email and sends it to nugget@realmassive.com

More information:

You’ll be given a CSV with two columns: [sign_image, building_image]. Both of these are web-links that take you to the image (we need to figure out if there is a Flickr API that can pull the links from Flickr).

What we need done:

  1. We need a script that will download both images
  2. Create an email to nugget@realmassive.com
  3. Leave the subject blank
  4. Attach both images to the body of the email
  5. Send the email and repeat for every row

Spreadsheet: https://docs.google.com/a/realmassive.com/spreadsheet/ccc?key=0Am6kcygL8anydHFoZ2NQZE16YTJJdHVva190cC1RS2c&usp=sharing

^^^ There is a sheet in here that is called "To be Uploaded Using Script" This is what the data will look like.

chrisivester commented 10 years ago

Austin,

Looking through some of the Flickr page source code today... we came across this pattern which is located on these two types of pages: http://www.flickr.com/photos/98605209@N04/11358683565/sizes/l/in/photostream/ http://www.flickr.com/photos/98605209@N04/11410494974/sizes/l/in/set-72157638745328626

Here is the location in page source... We need to pull image that is located in the img tag: (3264 x 2448)

                </ol>
            </li>

        </ol>
    </dd>
</dl>

^^^^ Can't figure out how to comment out the code here in Gist.... you'll have to look at comment source.