Author Options:

New instructables feature for FREE users Answered

After the success of my first Perl script thread, I just had inspiration to write another one (or modify the last rather)

In this thread, I give a breakdown of your instructables by views. You get to see the number of instructables you have that have 1000-9999 views, 10000-24999 views, 25000-49999 views, 50000-99999 views and 10000+ views. As well as the total views of all of your instructables as before.


So here is my fact about eric:


Instructables: 124
Total Ible Views: 1660250
1,000-9,999 views: 74
10,000-24,999 views: 21
25,000-49,999 views: 8
50,000-99,999 views: 6
100,000+ views: 1

And a less interesting one about me:


Instructables: 16
Total Ible Views: 66682
1,000-9,999 views: 7
10,000-24,999 views: 1
25,000-49,999 views: 1
50,000-99,999 views: 0
100,000+ views: 0

Post below to see yours!

I also have another script available here which downloads all of your instructables, or someone else's for alter reading, as pdfs.


A little late, but please could you do one for me, my good man?

Do one for me?

Instructables: 21
Total Ible Views: 88443

1,000-9,999 views: 14
10,000-24,999 views: 0
25,000-49,999 views: 1
50,000-99,999 views: 0
100,000+ views: 0

I wanna see how many I have now.  Time for an update?

How do I get more pageviews lolz?

I should think it's to do with the content of your instructables. Knex only appeals to a certain amount of people, other topics get more response. For example, one of my first ibles was hugely popular because it combined easy electronics and pranks, 2 things a lot of people like. My recipe ibles got a lot less attention as you can find recipes all over the internet, so they're of less interest to people (i think).

That wasn't meant to sound like "Knex is rubbish", it just has a limited audience is all I meant. :p

But however my Lego guide gets more views than knex?  I guess it would get about 15,000-20,000 views if it wasn't featured, so I don't see what makes lego get a wider audience than Knex? 

I don't see what makes lego get a wider audience than Knex? 

Well, LEGO have been around a lot longer than K'nex.  As a "toy" it appeals to generations... Other than that i will refrain from waxing poetic about them!

I guess that's why Knex is making their own bricks. 

I have lots of legos, though I may have lost half the collection I had back when I was 8. 

Well... as a kid lego appealed to me more. It looked more like something so it needed less imagination to create something like a car or an oil rig or.... whatever it was I wanted to build to save the world that day.

Same here, I got my first lego set when I was about 5, and I got my first knex set when I was 8 as a birthday present.  If I only knew my future, I probably would have discarded my legos and gotten more knex, but since I never heard of it before and it was hurting my fingers trying to build it, I just went back to legos until last year.


8 years ago

Could you do one for me please?

Instructables: 19
Total Ible Views: 341688

1,000-9,999 views: 8
10,000-24,999 views: 6
25,000-49,999 views: 2
50,000-99,999 views: 0
100,000+ views: 1

Yeeehaaaa. :D

You might like this script I wrote too :)


8 years ago

Neat... I don't have too many instructables to do the calculations on my own though.  Thanks to you i see i have 3 that have over 100,000 views!

Awesome. You downloaded and ran it then?

No... I just flipped through the pages of my instructables and tallied in my head.  Will you post mine?


Instructables: 26
Total Ible Views: 685006

1,000-9,999 views: 15
10,000-24,999 views: 6
25,000-49,999 views: 1
50,000-99,999 views: 0
100,000+ views: 3


8 years ago

Me thanks if you don't mind......

Instructables: 32
Total Ible Views: 258071

1,000-9,999 views: 21
10,000-24,999 views: 7
25,000-49,999 views: 1
50,000-99,999 views: 1
100,000+ views: 0

Ummm. Perl does allow you to declare variables by saying "my $var =0;" or just "my $var;", but doesn't kick up a fuss if you don't.  Sometimes I declare, sometimes I don't. It looks like $name I didn't declare, it's used first on line 18 to take the value of the first argument when you call the script and put it into $name. I then use it to make up the URL to someone's profile so I can fetch the number on instructables they've done.

It prints a few bits including the number of ibles and their name.

It then goes to the page that contains a list of all the ibles, extracts the links to the first 12, moves on to the next page, extracts the links to the next 12 etc until it has an array with X elements, where X is the number of instructables.

THEN it visits each one of those instructables, looks up the number of page views, gets rid of the comma then there are some if statements to determine which variable to increment depending on the band that number of views is in. When it has checked each ible, it prints the final stats.

I got a bit carried away answering your question there, but maybe you were going to ask some of that afterwards anyway :D enjoy!

No, no, very helpful, thanks for being so patient!

Okay, follow-up question: so declaring $name later in the script shouldn't be a problem, or conflict with anything (as long as there's no argument to get put in there already, of course), right? I tweaked it a bit to do just that but haven't been able to test it out yet. :)

Oh! Me! Me!

Instructables: 13
Total Ible Views: 26127

1,000-9,999 views: 8
10,000-24,999 views: 0
25,000-49,999 views: 0
50,000-99,999 views: 0
100,000+ views: 0


Instructables: 100
Total Ible Views: 1185156

1,000-9,999 views: 64
10,000-24,999 views: 18
25,000-49,999 views: 11
50,000-99,999 views: 4
100,000+ views: 0

= = = = = =
Can you do me ? ttthhhaaannnkkkkssss ! :D

Instructables: 36
Total Ible Views: 381467

1,000-9,999 views: 18
10,000-24,999 views: 8
25,000-49,999 views: 3
50,000-99,999 views: 1
100,000+ views: 0

.  Nice.
.  Post the source code?

Now included. If you looked at my last script, you'll see this is just a hacked version of that :p