Skip to content
This repository has been archived by the owner on Apr 3, 2021. It is now read-only.

hughrawlinson/500pxHacking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

500pxHacking

A repo for some little scripts for 500px.

Requires request.js. Just run npm install.

You'll need to set your 500px API key in an environmental variable named (for compatibility) FIVE_HUNDRED_PIXELS_KEY.

Get a histogram of a property over a users photos:

node ./photoPropertyHistogramByUser.js [username] [property of the photo].

var validProperties = [
  "id",
  "user_id",
  "name",
  "description",
  "camera",
  "lens",
  "focal_length",
  "iso",
  "shutter_speed",
  "aperture",
  "times_viewed",
  "rating",
  "status",
  "created_at",
  "category",
  "location",
  "latitude",
  "longitude",
  "taken_at",
  "hi_res_uploaded",
  "for_sale",
  "width",
  "height",
  "votes_count",
  "favorites_count",
  "comments_count",
  "nsfw",
  "sales_count",
  "for_sale_date",
  "highest_rating",
  "highest_rating_date",
  "license_type",
  "converted",
  "collections_count",
  "crop_version",
  "privacy",
  "image_url",
  "url",
  "positive_votes_count",
  "converted_bits",
  "image_format"
];

I'd thoroughly recommend using loadenv, and having a .env file containing something like FIVE_HUNDRED_PIXELS_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX.

About

Fun little scripts using the 500px API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published