Monday, May 24, 2010

Giving away email addresses

Many people are aware that they increase spam by posting their email address online, they try to circumvent that by writing their email like me at gmail dot com. But the Python code below shows how to retrieve the email address from a string (even if people use brackets etc). So be cautious.

                text2=text2.replace(' dot ','.')
                text2=text2.replace(' (dot) ','.')
                text2=text2.replace(' [dot] ','.')
                text2=text2.replace(' {dot} ','.')
                text2=text2.replace(' at ','@')
                text2=text2.replace(' (at) ','@')
                text2=text2.replace(' [at] ','@')
                text2=text2.replace(' {at} ','@')
                #now put into list
                for w in text3:
                    if w.find('@')>0 and w.find('.')>0:
                        if w.rfind('@') is not w.find('@'): #in case of 2 at

Friday, May 21, 2010

Google Social Graph in Python

I have started using the Google Social Graph API. I am running it in Python. It's pretty straightforward. I am using the edges out option (edo=1) and then collect all nodes_referenced. I do this up to the fourth degree. This way you can check what information about you or your friends is out there and can be linked up.

Tuesday, May 11, 2010

Twitter Follower Hack Has Twitter Leaping to Fix, Tweeps Panic-Tweeting [Updated] - via Fast Company

"Want to force anyone on Twitter to follow you (yes, even the wondrous
Mr. Fry)? There's a hack for that, and it's damned simple. The thing
is, it looks like it's kinda, sorta, maybe broken Twitter...and
everyone has zero followers.

Gizmodo just had a piece demonstrating the hack, which they speculate
may be a layover code from Twitter's earlier days that's still in
action. It couldn't be simpler: Visit, log in to your
profile, click on "Find people" and in the search box type "accept
xxxxxx" replacing the x's with the username of your desired target. It
may throw up an error message, but it seems to work very reliably.

The act has been quickly christened Twape on the Intertubes, meaning
"Twitter rape" and it's potentially incredibly important. So
incredibly important, in fact, that the community is freaking out
(while occasionally throwing out good jokes,) and not only because of
Twape itself, but because it looks at first glance like it may have
broken the entire Twitter system. But really this is probably a sign
that Twitter may already be on the case--if you visit
right now you'll see your follower counts are at zero...though your
feed will still connect to all the right Tweeps that you were
originally following.

This, folks, is a living act to demonstrate exactly how powerful
Twitter has become. For users who make the most of Twitter's global
reach to promote their wares, connect with customers or engage in
dialog with clients and friends, the list of people following you is a
jealously monitored and important thing (even while research
repeatedly shows that it's not how many people who follow you, but who
is following you that counts.) Any notion that Twitter may somehow
lose track of this data is frightening. Fingers crossed, hey, Tweeps?

Update: Twitter's confirmed that it's on the case, and that user's
follower counts will be returning to normal. A quick scan of the feeds
shows that this is only true for a limited number of Tweeps for the
mo, but we have confidence in the system."

via Fast Company

I am six users

I am browsing the Internet at work using two browsers, on the iPhone, on the blackberry, and at home using two browsers. This means web analytics packages would count me six times if I visited the same page from all. Are the counts over-inflated?