GithubHelp home page GithubHelp logo

500pxhacking's Introduction

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.

500pxhacking's People

Contributors

hughrawlinson avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.