Coder Social home page Coder Social logo

callerpy's Introduction

callerpy

Build Status

UPDATE MAY_18_2014
A new RESTful online version is available @ http://callerpy.sysbase.org
I will port it to CLI within a few days.

CURL Example:

$ curl -v 'http://callerpy.sysbase.org/search/world/api/v1/REST?number=920012345&cc=966'

* About to connect() to callerpy.sysbase.org port 80 (#0)
*   Trying 54.243.121.176...
* connected
* Connected to callerpy.sysbase.org (54.243.121.176) port 80 (#0)
> GET /search/world/api/v1/REST?number=920012345&cc=966 HTTP/1.1
> User-Agent: curl/7.26.0
> Host: callerpy.sysbase.org
> Accept: */*
> 
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Sun, 18 May 2014 00:19:12 GMT
< Server: gunicorn/18.0
< Content-Length: 302
< Connection: Keep-Alive
< 
{
  "getWorld": [
    {
      "ADDRESS": "", 
      "AREA": "", 
      "COMPANY_NAME": "", 
      "COUNTRY": "Saudi Arabia", 
      "NAME": "Dominos Pizza", 
      "NUMBER": "9200 12345", 
      "STREET": "", 
      "TWITTER_NAME": "", 
      "TWITTER_SCREEN_NAME": "", 
      "ZIPCODE": ""
    }
  ]
* Connection #0 to host callerpy.sysbase.org left intact
}* Closing connection #0


Truecaller Name Retriever.
Since my request for the API was rejected, I commenced using python parsing libraries.
Callerpy emulates the process one would encounter if using a web-browser.


NEW FEATURE
Strangely enough, it is not possible to physically enter the country code in www.truecaller.com although defined in www.truecaller.com/javascripts/app.min.1385646302.js
However, it is possible to do so using callerpy.

...EVEN NEWER FEATURE::THANKS TO NIRAV DESAI FOR HIS INSISTENCE :)
Automated Crawler Truecaller has rate limit

python callerpy.py -crawl 2 -l twitter

The integer represents the time to wait between each request.

Write the numbers in num.list according to the following format(CC;number):

1;7349303030
1;7349303022

Note the escape between them


TODO


LAST EDIT 2/12/2013

CallerPy v0.2 - TODO
  
Defintion: 

* [IMP]     Important Changes 
* [ASTH]    Aesthetic Implementations  
* [FIX]     Fixes to Currant Version  
* [IMPV]  Improvments
-----------------------
1. [IMPV] More Login Methods--Facebook, G+, Linkedin  
2. [IMP]  Automated Name|Number Crawler  
3. [ASTH] View in Map * Will handle encoding  
4. [IMP]  Show all possible names  
5. [IMP]  Define function to handle arguments

How To


CMD

usage: callerpy.py [-h] [-n number] [-c country] [-cc country code] -l login
                   [-crawl]

TrueCaller Name Retriever

optional arguments:
  -h, --help            show this help message and exit
  -n number, --number number
                        Phone Number Without Country Code (default: None)
  -c country, --country country
                        Country | String (default: None)
  -cc country code, --countrycode country code
                        Country | Int (default: None)
  -l login, --login login
                        Login Method | twitter, g+, fb (default: None)
  -crawl                Automated Crawler | time int (default: None)

Do not forget to hardcode your credentials


RUN

python callerpy.py -n 7349303030 -c us -l twitter  

OR

python callerpy.py -n 7349303030 -cc 1 -l twitter

OUTPUT

            {
name::Dominos Pizzay Quejas
number::7349303030
country::us
}
{
name::Pizza Hut Delivery
number::08447700669
country::uk
}

Note: this is an update to the former, or rather the latter method which used the XML format

To view the log: note the lack of arguments

python callerpy.py
Dominos Pizzay Quejas -- 7349303030 -- us
Pizza Hut Delivery -- 08447700669 -- uk

callerpy's People

Contributors

logic-gate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

callerpy's Issues

does this module still work or maintain now?

Hi,

I run the demo comment in your project, but failed to retrieve the expected results mentioned. Is this tool still maintained or working now?

Below is the results I got:
curl -v 'http://callerpy.sysbase.org/search/world/api/v1/REST?number=920012345&cc=966'

  • About to connect() to callerpy.sysbase.org port 80 (#0)
  • Trying 54.243.121.176...
  • connected
  • Connected to callerpy.sysbase.org (54.243.121.176) port 80 (#0)

    GET /search/world/api/v1/REST?number=920012345&cc=966 HTTP/1.1
    User-Agent: curl/7.27.0
    Host: callerpy.sysbase.org
    Accept: /

    < HTTP/1.1 404 NOT FOUND
    < Content-Type: text/html
    < Date: Wed, 16 Jul 2014 06:27:08 GMT
    < Server: gunicorn/18.0
    < Content-Length: 233
    < Connection: keep-alive
    < <title>404 Not Found</title>

    Not Found

    The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

  • Connection #0 to host callerpy.sysbase.org left intact
  • Closing connection #0

Clean-up

The code is not consistent, it needs to maintain a certain style.

View in Map

Come to think of it, if someone wants a GUI experience; they should use truecaller.com directly.

Crawlling returns nothing

From email

root@bt:~/Downloads/callerpy# python callerpy.py -crawl 2 -l twitter
Logging in...
Initiating...
Country Code::1
Number::7349303030
Attempting...
Initiating...
Country Code::1
Number::7349303022
Attempting...

Check Names-XML

The ability to search for name, countries, and numbers from log.xml

Limits enforced :)

Seems that they have imposed new system limits. Queries doesn't work anymore. Tried the web interface, system says you have to wait for 12 hours for a new search.

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.