Giter Club home page Giter Club logo

tumblrtag's Introduction

tumblrtag

Get all unique tags from tumblr blog!~

it may be easier to read the file "raw" This javascript was written so that a user could add it to the page and it would generate a javascript object containing all the tags used in their posts along with their usage numbers.

e.g Title: Post 1 Text: Hello world Tags: #hello #world

Title: Bad day Text: I am sick Tags: #sick #bad

Title: Bad day #2 Text: I am still sick Tags: #sick

From the above blog, the generated javascript object would have this format [ bad 1, hello 1, sick 2, world 1 ]

A second function which can then be used to sort them is also included, this results in [ sick 2, bad 1, hello 1, world 1 ]

It can also be used to generate HTML and is easily changable.

Hopefully this is helpful to some people.

tumblrtag's People

Contributors

scintillate avatar ritabuuk avatar

Stargazers

 avatar Julia Steiwer avatar Tommy Marshall avatar Frederick Wells avatar

Watchers

 avatar

tumblrtag's Issues

Tags matching reserved words cause the count to be NaN

Currently, if a tag matches a reserved word in Javascript (such as "pop"), the count is not calculated correctly, displaying as NaN (not a number), which wreaks havoc with anything relying on that number (such as the css that changes the text-size based on the number of posts under the associated tag).

image

Tags with apostrophes have broken links

Tags are displayed as a hyperlink to the results under the given tag. If a tag contains an apostrophe (such as "this is why we can't have nice things"), the link used in the hyperlink ends at the apostrophe (ending up directing the link to look under the tag "this is why we can").

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.