Showing posts with label Social Media. Show all posts
Showing posts with label Social Media. Show all posts

iMacro in action with APIs

Hello there, I know it’s been a long time since I am posting something new out here. Anyways, I am here and let’s start with something cool.

Today, I am going to open a whole new domain of possibilities where you can actually use your iMacro code for doing cool this; things that cool developer dudes (nerds) do often and charge a huge amount of money for that. ,, wait,, what’s coming ahead? Is it like some computer language tutorial or some cheap selling campaign? Well, not exactly, today’s section focuses upon utilization of iMacro scripting (simple scripting) for doing complicated activities without understanding or actually going through lengthy processes .

I am sure you must have heard of API, it’s a common term these days; it’s a fancy name given to a technique used for data/information transformation from one website to another. Let’s say you want to talk to your twitter account from your website, what will you do for it? Twitter allows standalone interface where you can login, see and send tweets and much more but what if you want to add this functionality in to your website so that whenever there is a news update from your company, it should get updated at your twitter account. Now, this is the place where API comes in to action; twitter, just like thousands of other website allows this functionality using its public API where you get free access to their API by registering and blah blah blah, oh crap, there are a bunch of tutorials out there, go and Google it yourself. As I said earlier and as you already know from my previous posts that I only share solutions that a common men can do (of course basic understandings of iMacro is must :P) so lets see how it is done.

There is a website called ‘www.apigee.com’, it’s a platform where you can actually access thousands of APIs of different websites including all of your favorite social media platforms. Today, we are going to see how easy it is to send periodic tweets using iMacro combined with apigee functionality; you will have to register a free account first and once you login, you will land at their home page with list of API’s that they have in their inventory, you can add more however let’s just stick with already listed ones. Now go through the lists and click ‘twitter’:

 An API allows interaction with the parent website and each API has different functions, as in our case, it allows getting data like tweet counts, friend lists, changing data from timeline, re-tweeting, posting a new tweet and many more functions, you must be seeing all these details if you’ve been following me.

Since you’ve got basic idea, let’s go for the real part where you actually link an API. There is a menu called ‘Console’ at the top, click it and click Authentication select box and select ‘OAuth 1’, it will show a popup, asking you to login your twitter account and allow it’s access to API, just hit ok/yes/authorize button (you know). Here I have allowed access to mine:


Now click “Select an API method” and select ‘Update.json’:



Now type the actual tweet text and click “Send” button:


And that’s it, go check your twitter account, you have actually posted a tweet using Twitter API :P

Keep in mind that twitter has limit of 160 characters, you can’t post a long tweet.

There are thousands of other APIs, some are listed at apigee and rest are more like personal however you can still utilize them using apigee if you have access to them. Here is the code for sending bulk tweets using iMacro:

VERSION BUILD=8920312 RECORDER=FX
'
'    Instructions:
'    Create a file in datasource folder, named Tweetsfile.csv; first row contains header and there is only 1 column
'
CmdLine !DataSource Tweetsfile.CSV
Set !DataSource_Columns 1
Set !Loop 2
Set !DataSource_Line {{!Loop}}

TAG POS=1 TYPE=INPUT:TEXT FORM=ID:request_params ATTR=ID:apigee_console_0_status CONTENT={{!Col1}}
TAG POS=1 TYPE=BUTTON FORM=ID:console_request ATTR=ID:send_button
TAG POS=1 TYPE=A ATTR=ID:control_request_params
Wait Seconds=3

And more scheduling auto-tweets, checkout my previous post about scheduling iMacro scripts!
Readmore → iMacro in action with APIs

Tumblr - how hard it can be for automation

Let me assure that as you are here, you must be aware of Tumblr.com right?

Tumblr
Tumblr Micro-Blog
OK, for those who are new to Tumblr, let me just go through little details about it and then we come to main point of this article. Tumblr is a microblogging platform and social networking website at same time; it was founded by Mr. David Karp and later purchased by Yahoo Inc. (David would be happy to see his product purchased by Yahoo!) - Tumblr allow it's users to post multimedia and other content to a short-form blog and likewise it's a social cum blog platform, it possess basic features provided in both platform including LIKES & Re-blogging.

People are crazy with social media platforms, always looking for new methods and trick to automate everything around and social media platforms are already aware of this scenario and they aren't much bothered as eventually it's increasing their audience however not all the platforms have same mentality, Tumblr being one of them. Mr. David was happy with these spammers or aggressive users however Yahoo doesn't seem to give them free hand, just like their Email platform (Oh! I don't like fancy html codes by Yahoo, making it harder to go around and automate things). Since the takeover, they have been putting more and more complex backend code for making it a smart micro-blogging solution with least spammers (I am not a spammer, I do it for fun only :P ); with advanced jSon/jQuery and other fancy work, they have added a WYSIWYG Editor called "ACE Editor" which is a good feature for users since it has a lot of features just like MS-Word however if you are looking to automate posting using iMacro, this is a huge problem since iMacro doesn't recognize this editor and doesn't record most of the time that it would record normally. Working with ACE Editor require some backend knowledge about it and how it works, there are way around or tricks to add/remove text from the sessions that it created while active however Tumblr make it difficult to operate this widget while at their platform - I spent two days in finding a standard function that ACE Editor would normally call for getting/setting data and eventually ended with bunch of complex functions and triggers, this and that!

For those, who are planning to reverse code Tumblr code and get to ACE Editor and do modification through Java Scripting, I got an advice "Don't do it", it isn't worth trying if you haven't done this before.

Crux of above articles: Tumblr is difficult to code with iMacro until and unless you are too smart. I made a script recently, it take URLs from CSV file, open these URLs, click RE-BLOG button, clear all texts from comment/schedule sections and fill them both with new data from CSV before hitting Schedule button.
Readmore → Tumblr - how hard it can be for automation

Facebook Group Poster Script

I admit, I have been bombarded with more than 58 requests asking the same question and I can’t respond individuals so here is the script that all of you were looking for. This is a generic script, you can use it at any Facebook group however just make sure you are using English pages or you will have to do little modifications since script searches for particular terms for locating text areas and buttons:

'--------------------------------------------------------------------------------------------------------
'
'    FB Group Poster
'
'    This script will post text along with images at Facebook groups.
'
'
Set !Timeout_Step 3
Set !Extract_Test_Popup NO

Tag Pos=1 Type=TextArea Attr=Title:Write<sp>something... Extract=Htm
Set !Var1 Eval("var a = '{{!extract}}'.match(/id=.(.+).>Write\s/); a[1];")

Set !ReplaySpeed Medium

' Add text below
EVENT TYPE=CLICK SELECTOR="#{{!Var1}}" BUTTON=0
EVENTS TYPE=KEYPRESS SELECTOR="#{{!Var1}}" CHARS="This is first line!\n\nLine2\n\nLine3"

Set !Extract Null

Tag Pos=1 Type=A Attr=data-endpoint:/ajax/composerx/attachment/media/chooser/
Tag Pos=1 Type=Input:File Attr=aria-label:*Photos/Video Extract=Htm
Set !Var2 Eval("var a = '{{!extract}}'.match(/id=.(.+).\sclass=/); a[1];")
Set !Extract Null

' Change path of picture from here or link it through CSV file
Tag Pos=1 Type=Input:File Attr=ID:{{!Var2}} Content=C:\Users\Public\Pictures\Sample<SP>Pictures\Chrysanthemum.jpg

Set !Timeout_Step 1
Tag Pos=1 Type=Div Attr=Class:_1dsp Content=Event:MouseOver
Tag Pos=R-1 Type=Form Attr=* Extract=Htm

Set !Var3 Eval("var a = '{{!extract}}'.match(/id=.(.+).><input\sname=/); a[1];")
Set !Extract Null

Tag Pos=1 Type=Form Attr=ID:{{!Var3}} Content=Event:MouseOver
Tag Pos=R1 Type=Form Attr=* Extract=Htm

Set !Var4 Eval("var a = '{{!extract}}'.match(/id=.(.+).\sonsubmit/); a[1];")
Set !Extract Null

Wait Seconds=40

Tag Pos=1 Type=Button Form=ID:{{!Var4}} Attr=Txt:Post


'--------------------------------------------------------------------------------------------------------

This script will put a simple text and add an image from my document; the good thing is that, you can link this with a csv file using 'Set !Datasource file_name.csv' and post multiple messages with images.
Readmore → Facebook Group Poster Script

AddmeFast- fastest way to increase Facebook likes

"I have 5,600 LIKES at my Facebook page; how many you got?"

Facebook likes are one of the attractive things that everyone is after and searching for solutions paid/free for increasing those likes, mostly for giving a robust look; they can be very useful in generating quick sales as well however source has to be genuine – If proper working is performed and likes are increase genuinely, there are higher changes that your products would rapidly get promoted and actual sales targets can be meet however it takes lots of time, money and efforts.

Enough with the lecture! So you are here just to learn how can you increase likes, well go ahead, read the below article thoroughly and there is script at the end as well.

OK so there are plenty of iMacro programmers, they are smart however the websites that they make scripts of, are even more smarter and website owners modify their websites constantly with rather new technologies or simply by changing basic HTML tags, just to get away from scripts. Addmefast and Like4like are one of those websites which help in increase dummy likes in matter of hours without having to do many efforts; although it can be managed easily manually however in order to save time and efforts, iMacro script comes handy; even a beginner of iMacro script can make their scripts for automating the processes, things get difficult when big changes are performed by addmefast/like4like.

Recently, Addmefast changed its layout, modified few html tags and enhanced its activity monitor algorithm for detecting auto-bots; Cool work I must say! Ok good for website owners but what about general users? Well, they look for updated script available at different blackhat websites and secret communities. Anyone can do iMacro scripting, it’s easy and takes few minutes to replicate humanly performed steps however in order to make your script robust, you need to utilized power of java scripting – it can be embedded scripting through EVAL or you can come up with entirely different script built as .JS (Java script with iMacro support).

Here is my script, actually don’t use anyone else’s script so you won’t get this one anywhere else. Anyhow, here are few guidelines while using my script:

  1. This script will properly work if you have good internet speed; Facebook loads quickly (let’s say around 2 to 5 seconds)
  2. Fast internet is necessary as addmefast closes the tab after a particular time interval and if you have a slower internet connection, page would close even before it loads completely
  3. Script will generate random time intervals (Waits), in order to replicate humanly action
  4. If facebook page is opened for a longer period, addmefast will close it however won’t give any points so it’s necessary to close the tab manually
  5. For slower internet, script will close Firefox browser

Now, copy this script and save it with any name you like; sign-in your facebook & addmefast accounts, visit the page from where pages are LIKED and play this script with a loop:

Updated Version!

' AddmeFast AutoLike
' 
' Creation Data: 9th July 2014
' Last Modified: 14th July 2014
' Created By: Janib Soomro (Soomrojb@Gmail.com)
'
Set !TimeOut_Page 10
Set !TimeOut_Step 10
Set !ErrorIgnore no
Set !Extract_Test_PopUP No
Tag Pos=1 Type=Div Attr=Class:likedPagesSingle Extract=Htm
Set !Var1 Eval("var x = '{{!extract}}'.match(/a class=.+\s(.+)-wrap/); x[1];")
Tag Pos=1 Type=Div Attr=Class:{{!Var1}}&&Txt:Like
Set !Extract Null
Tab T=2
Set !ErrorIgnore Yes
Set !TimeOut_Step 0

Set !Var1 Null
Tag Pos=1 Type=Span Attr=ID:pagesHeaderLikeButton Extract=Htm
Set !Var1 Eval("var x = '{{!Extract}}'.match(/ownerid=.+\sid=.(.+).\stype/); x[1];")

TAG POS=1 TYPE=BUTTON ATTR=ID:{{!Var1}}
Tag Pos=1 Type=Input:Submit Attr=Value:Like

Set !Var2 Eval("var a = (Math.floor(Math.random() * (2 - 1)) + 1); a;")
Wait Seconds={{!Var2}}
ADD !EXTRACT {{!URLCURRENT}}
'ONDIALOG POS=1 BUTTON=OK CONTENT=
Set !Var3 Eval("var x = '{{!extract}}'; if (x.match(/(facebook)/) != null) { y = 2; } else { y = 3; } y; ")
Tab T={{!Var3}}
Tab Close

Set !Var4 Eval("var a = (Math.floor(Math.random() * (5 - 3)) + 1); a;")
Wait Seconds={{!Var4}}

This script works properly and I have tried to make it flexible enough to handle small scale tweaks in website layout in future however if you still find it not working, report it and I will update the script again.

Readmore → AddmeFast- fastest way to increase Facebook likes