├── .travis.yml ├── LICENSE ├── README.md ├── TODO ├── callerpy.ini ├── callerpy.py ├── countries ├── log └── num.list /.travis.yml: -------------------------------------------------------------------------------- 1 | language: python 2 | python: 3 | - "2.6" 4 | - "2.7" 5 | # command to run tests 6 | script: nosetests 7 | 8 | 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | callerpy 2 | ======== 3 | [![Build Status](https://travis-ci.org/Logic-gate/callerpy.png?branch=master)](https://travis-ci.org/Logic-gate/callerpy) 4 | 5 | **UPDATE MAY_18_2014** 6 | A new RESTful online version is available @ http://callerpy.sysbase.org 7 | I will port it to CLI within a few days. 8 | 9 | CURL Example: 10 | ``` 11 | $ curl -v 'http://callerpy.sysbase.org/search/world/api/v1/REST?number=920012345&cc=966' 12 | 13 | * About to connect() to callerpy.sysbase.org port 80 (#0) 14 | * Trying 54.243.121.176... 15 | * connected 16 | * Connected to callerpy.sysbase.org (54.243.121.176) port 80 (#0) 17 | > GET /search/world/api/v1/REST?number=920012345&cc=966 HTTP/1.1 18 | > User-Agent: curl/7.26.0 19 | > Host: callerpy.sysbase.org 20 | > Accept: */* 21 | > 22 | * additional stuff not fine transfer.c:1037: 0 0 23 | * additional stuff not fine transfer.c:1037: 0 0 24 | * additional stuff not fine transfer.c:1037: 0 0 25 | * additional stuff not fine transfer.c:1037: 0 0 26 | * additional stuff not fine transfer.c:1037: 0 0 27 | * additional stuff not fine transfer.c:1037: 0 0 28 | * additional stuff not fine transfer.c:1037: 0 0 29 | * additional stuff not fine transfer.c:1037: 0 0 30 | * additional stuff not fine transfer.c:1037: 0 0 31 | * HTTP 1.1 or later with persistent connection, pipelining supported 32 | < HTTP/1.1 200 OK 33 | < Content-Type: application/json 34 | < Date: Sun, 18 May 2014 00:19:12 GMT 35 | < Server: gunicorn/18.0 36 | < Content-Length: 302 37 | < Connection: Keep-Alive 38 | < 39 | { 40 | "getWorld": [ 41 | { 42 | "ADDRESS": "", 43 | "AREA": "", 44 | "COMPANY_NAME": "", 45 | "COUNTRY": "Saudi Arabia", 46 | "NAME": "Dominos Pizza", 47 | "NUMBER": "9200 12345", 48 | "STREET": "", 49 | "TWITTER_NAME": "", 50 | "TWITTER_SCREEN_NAME": "", 51 | "ZIPCODE": "" 52 | } 53 | ] 54 | * Connection #0 to host callerpy.sysbase.org left intact 55 | }* Closing connection #0 56 | 57 | ``` 58 | *** 59 | 60 | Truecaller Name Retriever. 61 | Since my request for the API was rejected, I commenced using python parsing libraries. 62 | Callerpy emulates the process one would encounter if using a web-browser. 63 | 64 | *** 65 | **NEW FEATURE** 66 | 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 67 | However, it is possible to do so using callerpy. 68 | 69 | **...EVEN NEWER FEATURE::THANKS TO NIRAV DESAI FOR HIS INSISTENCE :)** 70 | Automated Crawler 71 | *Truecaller has rate limit* 72 | ``` 73 | python callerpy.py -crawl 2 -l twitter 74 | ``` 75 | The integer represents the time to wait between each request. 76 | 77 | Write the numbers in ```num.list``` according to the following format(```CC;number```): 78 | ``` 79 | 1;7349303030 80 | 1;7349303022 81 | ``` 82 | *Note the escape between them* 83 | 84 | *** 85 | TODO 86 | -------- 87 | *** 88 | LAST EDIT 2/12/2013 89 | ``` 90 | CallerPy v0.2 - TODO 91 | 92 | Defintion: 93 | 94 | * [IMP] Important Changes 95 | * [ASTH] Aesthetic Implementations 96 | * [FIX] Fixes to Currant Version 97 | * [IMPV] Improvments 98 | ----------------------- 99 | 1. [IMPV] More Login Methods--Facebook, G+, Linkedin 100 | 2. [IMP] Automated Name|Number Crawler 101 | 3. [ASTH] View in Map * Will handle encoding 102 | 4. [IMP] Show all possible names 103 | 5. [IMP] Define function to handle arguments 104 | ``` 105 | *** 106 | How To 107 | ----- 108 | *** 109 | **CMD** 110 | ``` 111 | usage: callerpy.py [-h] [-n number] [-c country] [-cc country code] -l login 112 | [-crawl] 113 | 114 | TrueCaller Name Retriever 115 | 116 | optional arguments: 117 | -h, --help show this help message and exit 118 | -n number, --number number 119 | Phone Number Without Country Code (default: None) 120 | -c country, --country country 121 | Country | String (default: None) 122 | -cc country code, --countrycode country code 123 | Country | Int (default: None) 124 | -l login, --login login 125 | Login Method | twitter, g+, fb (default: None) 126 | -crawl Automated Crawler | time int (default: None) 127 | 128 | Do not forget to hardcode your credentials 129 | 130 | ``` 131 | *** 132 | **RUN** 133 | ``` 134 | python callerpy.py -n 7349303030 -c us -l twitter 135 | ``` 136 | *** 137 | *OR* 138 | ``` 139 | python callerpy.py -n 7349303030 -cc 1 -l twitter 140 | ``` 141 | *** 142 | **OUTPUT** 143 | ``` 144 | { 145 | name::Dominos Pizzay Quejas 146 | number::7349303030 147 | country::us 148 | } 149 | { 150 | name::Pizza Hut Delivery 151 | number::08447700669 152 | country::uk 153 | } 154 | 155 | ``` 156 | *Note*: this is an update to the former, or rather the latter method which used the XML format 157 | 158 | To view the log: *note the lack of arguments* 159 | ``` 160 | python callerpy.py 161 | Dominos Pizzay Quejas -- 7349303030 -- us 162 | Pizza Hut Delivery -- 08447700669 -- uk 163 | ``` 164 | 165 | 166 | -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- 1 | 2 | LAST EDIT 2/12/2013 3 | CallerPy v0.2 - TODO 4 | 5 | Defintion: 6 | 7 | [IMP] Important Changes 8 | [ASTH] Aesthetic Implementations 9 | [FIX] Fixes to Currant Version 10 | [IMPV] Improvments 11 | 12 | ----------------------------------------- 13 | 14 | TODO 15 | 16 | [IMPV] More Login Methods--Facebook, G+, Linkedin 17 | [IMP] Automated Name|Number Crawler 18 | [ASTH] View xml.log in web browser * Will handle encoding 19 | [IMP] Show all possible names 20 | [IMP] Define function to handle arguments 21 | 22 | 23 | -------------------------------------------------------------------------------- /callerpy.ini: -------------------------------------------------------------------------------- 1 | [CREDS-TWITTER] 2 | username = 3 | password = 4 | [CREDS-GOOGLE] 5 | username = 6 | password = 7 | [CREDS-FACEBOOK] 8 | username = 9 | pawwsord = 10 | -------------------------------------------------------------------------------- /callerpy.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # CallerPy V 2.0 - Truecaller Name Retriever 4 | # Copyright (C) <2013> mad_dev(A'mmer Almadani) 5 | # 6 | # Redistribution and use in source and binary forms, with or without 7 | # modification, are permitted provided that the following conditions are met: 8 | # * Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # * Redistributions in binary form must reproduce the above copyright 11 | # notice, this list of conditions and the following disclaimer in the 12 | # documentation and/or other materials provided with the distribution. 13 | # * Neither the name of the nor the 14 | # names of its contributors may be used to endorse or promote products 15 | # derived from this software without specific prior written permission. 16 | # 17 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 18 | # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20 | # DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY 21 | # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 22 | # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 | # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 | # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | 28 | # Report any issues with this script to 29 | 30 | 31 | import mechanize 32 | from bs4 import BeautifulSoup 33 | import re 34 | import datetime 35 | import argparse 36 | import sys 37 | import ConfigParser 38 | import time 39 | 40 | class CallerPy(): 41 | 42 | def authenticate(self): 43 | url = 'http://www.truecaller.com/authenticate/' 44 | return url 45 | 46 | def twitter(self, user, pwd): 47 | 48 | param = 'twitter' 49 | url = self.authenticate() 50 | B.open(url+param) 51 | B.form = list(B.forms())[0] 52 | B['session[username_or_email]'] = user 53 | B['session[password]'] = pwd 54 | return B.submit() 55 | 56 | #def googlePlus(): 57 | 58 | #def facebook(): 59 | 60 | 61 | def truecaller(self, country, number): 62 | B.form = list(B.forms()) 63 | B.follow_link(nr=1) 64 | q = B.open('http://www.truecaller.com/search/%s/%s' %(country, number)) 65 | a = q.read() 66 | bs = BeautifulSoup(a) 67 | if '
' in a: 68 | for name in bs.find_all('hgroup',{"id":"result-profile-heading"}): 69 | nm = re.split(r'<.*?>', str(name)) 70 | for i in nm: 71 | print i 72 | self.save(nm[2], country, number) 73 | 74 | 75 | def save(self, name, country, number): 76 | template = '''{ 77 | name::%s 78 | number::%s 79 | country::%s 80 | } 81 | ''' %(name, number, country) 82 | log = open('log', 'a') 83 | log.write(template) 84 | log.close() 85 | 86 | 87 | def country_by_code(self, code): 88 | a = open('countries', 'r') 89 | b = a.read() 90 | p = re.findall('[a-z]{1,}', b) 91 | o = re.findall('[0-9]{1,}', b) 92 | for i, e in zip(p, o): 93 | if str(code) == str(e): 94 | return i 95 | 96 | def history(self): 97 | a = open('log', 'r').read() 98 | names = re.findall(r"name::(.*)", a) 99 | numbers = re.findall(r"number::(.*)", a) 100 | countries = re.findall(r"country::(.*)", a) 101 | 102 | for name, number, country in zip(names, numbers, countries): 103 | print name, '--', number, '--', country 104 | 105 | def login_creds(self, param): 106 | config = ConfigParser.ConfigParser() 107 | config.read('callerpy.ini') 108 | user= config.get(param, 'username') 109 | pwd= config.get(param, "password") 110 | return user, pwd 111 | 112 | 113 | if __name__ == '__main__': 114 | 115 | par = argparse.ArgumentParser(prog=__file__, formatter_class=argparse.ArgumentDefaultsHelpFormatter, 116 | epilog="Do not forget to hardcode your credentials", description='TrueCaller Name Retriever') 117 | par.add_argument('-n', '--number', required=False, help="Phone Number Without Country Code", metavar='number') 118 | par.add_argument('-c', '--country',required=False, help="Country | String", metavar='country') 119 | par.add_argument('-cc', '--countrycode',required=False, help="Country | Int", metavar='country code', type=int) 120 | par.add_argument('-l', '--login', required=True, help="Login Method | twitter, g+, fb", metavar='login') 121 | par.add_argument('-crawl', required=False, type=int, help="Automated Crawler | time int", metavar='') 122 | B = mechanize.Browser() 123 | B.set_handle_robots(False) 124 | x = CallerPy() 125 | 126 | def crawl(tm): 127 | user = x.login_creds("CREDS-TWITTER")[0] 128 | pwd = x.login_creds("CREDS-TWITTER")[1] 129 | try: 130 | print 'Logging in...' 131 | x.twitter(user, pwd) 132 | pass 133 | except: 134 | print 'Could not login' 135 | sys.exit(0) 136 | crawlOpen= open('num.list', 'r') 137 | crawlRead = crawlOpen.read() 138 | crawlOpen.close() 139 | #understand num.list 140 | sp = crawlRead.split() 141 | for num in sp: 142 | print 'Initiating...' 143 | time.sleep(tm) 144 | f = re.split(';(.*)', num) 145 | print 'Country Code::%s' %f[0] 146 | print 'Number::%s' %f[1] 147 | try: 148 | if str(f[0]) == '54': 149 | country = 'argentina-buenosaires' 150 | x.truecaller(country, str(f[1])) 151 | if str(f[0]) == '245': 152 | country = 'guinea-bissau' 153 | x.truecaller(country, str(f[1])) 154 | if str(f[0]) == '91': 155 | country = 'india-other' 156 | x.truecaller(country, str(f[1])) 157 | else: 158 | print 'Attempting...' 159 | x.truecaller(x.country_by_code(str(f[0])), str(f[1])) 160 | except: 161 | print 'Oops..Something went wrong' 162 | 163 | if len(sys.argv) == 1: 164 | x.history() 165 | sys.exit(0) 166 | 167 | argvs = par.parse_args() 168 | 169 | current_date = datetime.datetime.now() 170 | 171 | if argvs.crawl is not None: 172 | crawl(int(argvs.crawl)) 173 | sys.exit(0) 174 | 175 | '''TODO:Define function to handle arguments''' 176 | 177 | if argvs.country is None: 178 | if argvs.login == 'twitter': 179 | print 'Using Twitter' 180 | try: 181 | user = x.login_creds("CREDS-TWITTER")[0] 182 | pwd = x.login_creds("CREDS-TWITTER")[1] 183 | if str(argvs.countrycode) == '54': 184 | country = 'argentina-buenosaires' 185 | x.twitter(user, pwd), x.truecaller(country, argvs.number) 186 | if str(argvs.countrycode) == '245': 187 | country = 'guinea-bissau' 188 | x.twitter(user, pwd), x.truecaller(country, argvs.number) 189 | if str(argvs.countrycode) == '91': 190 | country = 'india-other' 191 | x.twitter(user, pwd), x.truecaller(country, argvs.number) 192 | else: 193 | x.twitter(user, pwd), x.truecaller(x.country_by_code(argvs.countrycode), argvs.number) 194 | except: 195 | print 'Could Not Find a Name for %s' %argvs.number 196 | 197 | else: 198 | print 'This version only supports twitter' 199 | if argvs.countrycode is None: 200 | if argvs.login == 'twitter': 201 | print 'Using Twitter' 202 | user = x.login_creds("CREDS-TWITTER")[0] 203 | pwd = x.login_creds("CREDS-TWITTER")[1] 204 | x.twitter(user, pwd), x.truecaller(argvs.country, argvs.number) 205 | else: 206 | print 'This version only supports twitter' 207 | 208 | 209 | 210 | -------------------------------------------------------------------------------- /countries: -------------------------------------------------------------------------------- 1 | {COUNTRY_ID:"afghanistan",COUNTRY_CODE:"93"}, 2 | {COUNTRY_ID:"albania",COUNTRY_CODE:"355"}, 3 | {COUNTRY_ID:"algeria",COUNTRY_CODE:"213"}, 4 | {COUNTRY_ID:"americansamoa",COUNTRY_CODE:"1684"}, 5 | {COUNTRY_ID:"andorra",COUNTRY_CODE:"376"}, 6 | {COUNTRY_ID:"angola",COUNTRY_CODE:"244"}, 7 | {COUNTRY_ID:"anguilla",COUNTRY_CODE:"1264"}, 8 | {COUNTRY_ID:"antiguaandbarbuda",COUNTRY_CODE:"1268"}, 9 | {COUNTRY_ID:"argentinabuenosaires",COUNTRY_CODE:"54"}, 10 | {COUNTRY_ID:"armenia",COUNTRY_CODE:"374"}, 11 | {COUNTRY_ID:"aruba",COUNTRY_CODE:"297"}, 12 | {COUNTRY_ID:"australia",COUNTRY_CODE:"61"}, 13 | {COUNTRY_ID:"austria",COUNTRY_CODE:"43"}, 14 | {COUNTRY_ID:"azerbaijan",COUNTRY_CODE:"994"}, 15 | {COUNTRY_ID:"bahamas",COUNTRY_CODE:"1242"}, 16 | {COUNTRY_ID:"bahrain",COUNTRY_CODE:"973"}, 17 | {COUNTRY_ID:"bangladesh",COUNTRY_CODE:"880"}, 18 | {COUNTRY_ID:"barbados",COUNTRY_CODE:"1246"}, 19 | {COUNTRY_ID:"belarus",COUNTRY_CODE:"375"}, 20 | {COUNTRY_ID:"belgium",COUNTRY_CODE:"32"}, 21 | {COUNTRY_ID:"belize",COUNTRY_CODE:"501"}, 22 | {COUNTRY_ID:"benin",COUNTRY_CODE:"229"}, 23 | {COUNTRY_ID:"bermuda",COUNTRY_CODE:"1441"}, 24 | {COUNTRY_ID:"bhutan",COUNTRY_CODE:"975"}, 25 | {COUNTRY_ID:"bolivia",COUNTRY_CODE:"591"}, 26 | {COUNTRY_ID:"bosniaandherzegovina",COUNTRY_CODE:"387"}, 27 | {COUNTRY_ID:"botswana",COUNTRY_CODE:"267"}, 28 | {COUNTRY_ID:"brazil",COUNTRY_CODE:"55"}, 29 | {COUNTRY_ID:"britishindianoceanterritory",COUNTRY_CODE:"246"}, 30 | {COUNTRY_ID:"britishvirginislands",COUNTRY_CODE:"1284"}, 31 | {COUNTRY_ID:"brunei",COUNTRY_CODE:"673"}, 32 | {COUNTRY_ID:"bulgaria",COUNTRY_CODE:"359"}, 33 | {COUNTRY_ID:"burkinafaso",COUNTRY_CODE:"226"}, 34 | {COUNTRY_ID:"burma",COUNTRY_CODE:"95"}, 35 | {COUNTRY_ID:"burundi",COUNTRY_CODE:"257"}, 36 | {COUNTRY_ID:"cambodja",COUNTRY_CODE:"855"}, 37 | {COUNTRY_ID:"cameroon",COUNTRY_CODE:"237"}, 38 | {COUNTRY_ID:"canada",COUNTRY_CODE:"1"}, 39 | {COUNTRY_ID:"capeverde",COUNTRY_CODE:"238"}, 40 | {COUNTRY_ID:"caymanislands",COUNTRY_CODE:"1345"}, 41 | {COUNTRY_ID:"centralafricanrepublic",COUNTRY_CODE:"236"}, 42 | {COUNTRY_ID:"chad",COUNTRY_CODE:"235"}, 43 | {COUNTRY_ID:"chile",COUNTRY_CODE:"56"}, 44 | {COUNTRY_ID:"china",COUNTRY_CODE:"86"}, 45 | {COUNTRY_ID:"christmasisland",COUNTRY_CODE:"6189"}, 46 | {COUNTRY_ID:"colombia",COUNTRY_CODE:"57"}, 47 | {COUNTRY_ID:"comoros",COUNTRY_CODE:"269"}, 48 | {COUNTRY_ID:"congo",COUNTRY_CODE:"242"}, 49 | {COUNTRY_ID:"cookislands",COUNTRY_CODE:"682"}, 50 | {COUNTRY_ID:"costarica",COUNTRY_CODE:"506"}, 51 | {COUNTRY_ID:"croatia",COUNTRY_CODE:"385"}, 52 | {COUNTRY_ID:"cuba",COUNTRY_CODE:"53"}, 53 | {COUNTRY_ID:"cyprus",COUNTRY_CODE:"357"}, 54 | {COUNTRY_ID:"czechrepublic",COUNTRY_CODE:"420"}, 55 | {COUNTRY_ID:"denmark",COUNTRY_CODE:"45"}, 56 | {COUNTRY_ID:"djibouti",COUNTRY_CODE:"253"}, 57 | {COUNTRY_ID:"dominica",COUNTRY_CODE:"1767"}, 58 | {COUNTRY_ID:"dominicanrepublic",COUNTRY_CODE:"1809"}, 59 | {COUNTRY_ID:"easttimor",COUNTRY_CODE:"670"}, 60 | {COUNTRY_ID:"ecuador",COUNTRY_CODE:"593"}, 61 | {COUNTRY_ID:"egypt",COUNTRY_CODE:"20"}, 62 | {COUNTRY_ID:"elsalvador",COUNTRY_CODE:"503"}, 63 | {COUNTRY_ID:"equatorialguinea",COUNTRY_CODE:"240"}, 64 | {COUNTRY_ID:"eritrea",COUNTRY_CODE:"291"}, 65 | {COUNTRY_ID:"estonia",COUNTRY_CODE:"372"}, 66 | {COUNTRY_ID:"ethiopia",COUNTRY_CODE:"251"}, 67 | {COUNTRY_ID:"faroeislands",COUNTRY_CODE:"298"}, 68 | {COUNTRY_ID:"fiji",COUNTRY_CODE:"679"}, 69 | {COUNTRY_ID:"finland",COUNTRY_CODE:"358"}, 70 | {COUNTRY_ID:"france",COUNTRY_CODE:"33"}, 71 | {COUNTRY_ID:"frenchguiana",COUNTRY_CODE:"594"}, 72 | {COUNTRY_ID:"frenchpolynesia",COUNTRY_CODE:"689"}, 73 | {COUNTRY_ID:"gabon",COUNTRY_CODE:"241"}, 74 | {COUNTRY_ID:"gambia",COUNTRY_CODE:"220"}, 75 | {COUNTRY_ID:"georgia",COUNTRY_CODE:"995"}, 76 | {COUNTRY_ID:"germany",COUNTRY_CODE:"49"}, 77 | {COUNTRY_ID:"ghana",COUNTRY_CODE:"233"}, 78 | {COUNTRY_ID:"gibraltar",COUNTRY_CODE:"350"}, 79 | {COUNTRY_ID:"greece",COUNTRY_CODE:"30"}, 80 | {COUNTRY_ID:"greenland",COUNTRY_CODE:"299"}, 81 | {COUNTRY_ID:"grenada",COUNTRY_CODE:"1473"}, 82 | {COUNTRY_ID:"guadeloupe",COUNTRY_CODE:"590"}, 83 | {COUNTRY_ID:"guam",COUNTRY_CODE:"1671"}, 84 | {COUNTRY_ID:"guatemala",COUNTRY_CODE:"502"}, 85 | {COUNTRY_ID:"guinea",COUNTRY_CODE:"224"}, 86 | {COUNTRY_ID:"guineabissau",COUNTRY_CODE:"245"}, 87 | {COUNTRY_ID:"guyana",COUNTRY_CODE:"592"}, 88 | {COUNTRY_ID:"haiti",COUNTRY_CODE:"509"}, 89 | {COUNTRY_ID:"honduras",COUNTRY_CODE:"504"}, 90 | {COUNTRY_ID:"hongkong",COUNTRY_CODE:"852"}, 91 | {COUNTRY_ID:"hungary",COUNTRY_CODE:"36"}, 92 | {COUNTRY_ID:"iceland",COUNTRY_CODE:"354"}, 93 | {COUNTRY_ID:"indiaother",COUNTRY_CODE:"91"}, 94 | {COUNTRY_ID:"indonesia",COUNTRY_CODE:"62"}, 95 | {COUNTRY_ID:"iran",COUNTRY_CODE:"98"}, 96 | {COUNTRY_ID:"iraq",COUNTRY_CODE:"964"}, 97 | {COUNTRY_ID:"ireland",COUNTRY_CODE:"353"}, 98 | {COUNTRY_ID:"israel",COUNTRY_CODE:"972"}, 99 | {COUNTRY_ID:"italy",COUNTRY_CODE:"39"}, 100 | {COUNTRY_ID:"ivorycoast",COUNTRY_CODE:"225"}, 101 | {COUNTRY_ID:"jamaica",COUNTRY_CODE:"1876"}, 102 | {COUNTRY_ID:"japan",COUNTRY_CODE:"81"}, 103 | {COUNTRY_ID:"jordan",COUNTRY_CODE:"962"}, 104 | {COUNTRY_ID:"kazakhstan",COUNTRY_CODE:"7"}, 105 | {COUNTRY_ID:"kenya",COUNTRY_CODE:"254"}, 106 | {COUNTRY_ID:"kiribati",COUNTRY_CODE:"686"}, 107 | {COUNTRY_ID:"kuwait",COUNTRY_CODE:"965"}, 108 | {COUNTRY_ID:"kyrgyzstan",COUNTRY_CODE:"996"}, 109 | {COUNTRY_ID:"laos",COUNTRY_CODE:"856"}, 110 | {COUNTRY_ID:"latvia",COUNTRY_CODE:"371"}, 111 | {COUNTRY_ID:"lebanon",COUNTRY_CODE:"961"}, 112 | {COUNTRY_ID:"lesotho",COUNTRY_CODE:"266"}, 113 | {COUNTRY_ID:"liberia",COUNTRY_CODE:"231"}, 114 | {COUNTRY_ID:"libya",COUNTRY_CODE:"218"}, 115 | {COUNTRY_ID:"liechtenstein",COUNTRY_CODE:"423"}, 116 | {COUNTRY_ID:"lithuania",COUNTRY_CODE:"370"}, 117 | {COUNTRY_ID:"luxembourg",COUNTRY_CODE:"352"}, 118 | {COUNTRY_ID:"macau",COUNTRY_CODE:"853"}, 119 | {COUNTRY_ID:"macedonia",COUNTRY_CODE:"389"}, 120 | {COUNTRY_ID:"madagascar",COUNTRY_CODE:"261"}, 121 | {COUNTRY_ID:"malawi",COUNTRY_CODE:"265"}, 122 | {COUNTRY_ID:"malaysia",COUNTRY_CODE:"60"}, 123 | {COUNTRY_ID:"maldives",COUNTRY_CODE:"960"}, 124 | {COUNTRY_ID:"mali",COUNTRY_CODE:"223"}, 125 | {COUNTRY_ID:"malta",COUNTRY_CODE:"356"}, 126 | {COUNTRY_ID:"marshallislands",COUNTRY_CODE:"692"}, 127 | {COUNTRY_ID:"martinique",COUNTRY_CODE:"596"}, 128 | {COUNTRY_ID:"mauritania",COUNTRY_CODE:"222"}, 129 | {COUNTRY_ID:"mauritius",COUNTRY_CODE:"230"}, 130 | {COUNTRY_ID:"mayotte",COUNTRY_CODE:"262"}, 131 | {COUNTRY_ID:"mexico",COUNTRY_CODE:"52"}, 132 | {COUNTRY_ID:"moldova",COUNTRY_CODE:"373"}, 133 | {COUNTRY_ID:"monaco",COUNTRY_CODE:"377"}, 134 | {COUNTRY_ID:"mongolia",COUNTRY_CODE:"976"}, 135 | {COUNTRY_ID:"montenegro",COUNTRY_CODE:"382"}, 136 | {COUNTRY_ID:"montserrat",COUNTRY_CODE:"1664"}, 137 | {COUNTRY_ID:"morocco",COUNTRY_CODE:"212"}, 138 | {COUNTRY_ID:"mozambique",COUNTRY_CODE:"258"}, 139 | {COUNTRY_ID:"namibia",COUNTRY_CODE:"264"}, 140 | {COUNTRY_ID:"nauru",COUNTRY_CODE:"674"}, 141 | {COUNTRY_ID:"nepal",COUNTRY_CODE:"977"}, 142 | {COUNTRY_ID:"netherlands",COUNTRY_CODE:"31"}, 143 | {COUNTRY_ID:"netherlandsantilles",COUNTRY_CODE:"599"}, 144 | {COUNTRY_ID:"newcaledonia",COUNTRY_CODE:"687"}, 145 | {COUNTRY_ID:"newzealand",COUNTRY_CODE:"64"}, 146 | {COUNTRY_ID:"nicaragua",COUNTRY_CODE:"505"}, 147 | {COUNTRY_ID:"niger",COUNTRY_CODE:"227"}, 148 | {COUNTRY_ID:"nigeria",COUNTRY_CODE:"234"}, 149 | {COUNTRY_ID:"niue",COUNTRY_CODE:"683"}, 150 | {COUNTRY_ID:"norfolkisland",COUNTRY_CODE:"672"}, 151 | {COUNTRY_ID:"northernmarianaislands",COUNTRY_CODE:"1670"}, 152 | {COUNTRY_ID:"northkorea",COUNTRY_CODE:"850"}, 153 | {COUNTRY_ID:"norway",COUNTRY_CODE:"47"}, 154 | {COUNTRY_ID:"oman",COUNTRY_CODE:"968"}, 155 | {COUNTRY_ID:"pakistan",COUNTRY_CODE:"92"}, 156 | {COUNTRY_ID:"palau",COUNTRY_CODE:"680"}, 157 | {COUNTRY_ID:"palestine",COUNTRY_CODE:"970"}, 158 | {COUNTRY_ID:"panama",COUNTRY_CODE:"507"}, 159 | {COUNTRY_ID:"papuanewguinea",COUNTRY_CODE:"675"}, 160 | {COUNTRY_ID:"paraguay",COUNTRY_CODE:"595"}, 161 | {COUNTRY_ID:"peru",COUNTRY_CODE:"51"}, 162 | {COUNTRY_ID:"philippines",COUNTRY_CODE:"63"}, 163 | {COUNTRY_ID:"pitcairnislands",COUNTRY_CODE:"870"}, 164 | {COUNTRY_ID:"poland",COUNTRY_CODE:"48"}, 165 | {COUNTRY_ID:"portugal",COUNTRY_CODE:"351"}, 166 | {COUNTRY_ID:"puertorico",COUNTRY_CODE:"1787"}, 167 | {COUNTRY_ID:"qatar",COUNTRY_CODE:"974"}, 168 | {COUNTRY_ID:"reunion",COUNTRY_CODE:"262"}, 169 | {COUNTRY_ID:"romania",COUNTRY_CODE:"40"}, 170 | {COUNTRY_ID:"russia",COUNTRY_CODE:"7"}, 171 | {COUNTRY_ID:"rwanda",COUNTRY_CODE:"250"}, 172 | {COUNTRY_ID:"sainthelena",COUNTRY_CODE:"290"}, 173 | {COUNTRY_ID:"saintkittsandnevis",COUNTRY_CODE:"1869"}, 174 | {COUNTRY_ID:"saintlucia",COUNTRY_CODE:"1758"}, 175 | {COUNTRY_ID:"saintmartin",COUNTRY_CODE:"1599"}, 176 | {COUNTRY_ID:"saintpierreandmiquelon",COUNTRY_CODE:"508"}, 177 | {COUNTRY_ID:"saintvincentandthegrenadines",COUNTRY_CODE:"1784"}, 178 | {COUNTRY_ID:"samoa",COUNTRY_CODE:"685"}, 179 | {COUNTRY_ID:"sanmarino",COUNTRY_CODE:"378"}, 180 | {COUNTRY_ID:"saotomeandprincipe",COUNTRY_CODE:"239"}, 181 | {COUNTRY_ID:"saudiarabia",COUNTRY_CODE:"966"}, 182 | {COUNTRY_ID:"senegal",COUNTRY_CODE:"221"}, 183 | {COUNTRY_ID:"serbia",COUNTRY_CODE:"381"}, 184 | {COUNTRY_ID:"seychelles",COUNTRY_CODE:"248"}, 185 | {COUNTRY_ID:"sgeorgiasouthsandwichislands",COUNTRY_CODE:"500"}, 186 | {COUNTRY_ID:"sierraleone",COUNTRY_CODE:"232"}, 187 | {COUNTRY_ID:"singapore",COUNTRY_CODE:"65"}, 188 | {COUNTRY_ID:"slovakia",COUNTRY_CODE:"421"}, 189 | {COUNTRY_ID:"slovenia",COUNTRY_CODE:"386"}, 190 | {COUNTRY_ID:"solomonislands",COUNTRY_CODE:"677"}, 191 | {COUNTRY_ID:"somalia",COUNTRY_CODE:"252"}, 192 | {COUNTRY_ID:"southafrica",COUNTRY_CODE:"27"}, 193 | {COUNTRY_ID:"southkorea",COUNTRY_CODE:"82"}, 194 | {COUNTRY_ID:"spain",COUNTRY_CODE:"34"}, 195 | {COUNTRY_ID:"srilanka",COUNTRY_CODE:"94"}, 196 | {COUNTRY_ID:"sudan",COUNTRY_CODE:"249"}, 197 | {COUNTRY_ID:"suriname",COUNTRY_CODE:"597"}, 198 | {COUNTRY_ID:"swaziland",COUNTRY_CODE:"268"}, 199 | {COUNTRY_ID:"sweden",COUNTRY_CODE:"46"}, 200 | {COUNTRY_ID:"switzerland",COUNTRY_CODE:"41"}, 201 | {COUNTRY_ID:"syria",COUNTRY_CODE:"963"}, 202 | {COUNTRY_ID:"taiwan",COUNTRY_CODE:"886"}, 203 | {COUNTRY_ID:"tajikistan",COUNTRY_CODE:"992"}, 204 | {COUNTRY_ID:"tanzania",COUNTRY_CODE:"255"}, 205 | {COUNTRY_ID:"thailand",COUNTRY_CODE:"66"}, 206 | {COUNTRY_ID:"togo",COUNTRY_CODE:"228"}, 207 | {COUNTRY_ID:"tokelau",COUNTRY_CODE:"690"}, 208 | {COUNTRY_ID:"tonga",COUNTRY_CODE:"676"}, 209 | {COUNTRY_ID:"trinidadandtobago",COUNTRY_CODE:"1868"}, 210 | {COUNTRY_ID:"tunisia",COUNTRY_CODE:"216"}, 211 | {COUNTRY_ID:"turkey",COUNTRY_CODE:"90"}, 212 | {COUNTRY_ID:"turkmenistan",COUNTRY_CODE:"993"}, 213 | {COUNTRY_ID:"turksandcaicosislands",COUNTRY_CODE:"1649"}, 214 | {COUNTRY_ID:"tuvalu",COUNTRY_CODE:"688"}, 215 | {COUNTRY_ID:"uganda",COUNTRY_CODE:"256"}, 216 | {COUNTRY_ID:"uk",COUNTRY_CODE:"44"}, 217 | {COUNTRY_ID:"ukraine",COUNTRY_CODE:"380"}, 218 | {COUNTRY_ID:"unitedarabemirates",COUNTRY_CODE:"971"}, 219 | {COUNTRY_ID:"uruguay",COUNTRY_CODE:"598"}, 220 | {COUNTRY_ID:"us",COUNTRY_CODE:"1"}, 221 | {COUNTRY_ID:"uzbekistan",COUNTRY_CODE:"998"}, 222 | {COUNTRY_ID:"vanuatu",COUNTRY_CODE:"678"}, 223 | {COUNTRY_ID:"venezuela",COUNTRY_CODE:"58"}, 224 | {COUNTRY_ID:"vietnam",COUNTRY_CODE:"84"}, 225 | {COUNTRY_ID:"virginislands",COUNTRY_CODE:"1340"}, 226 | {COUNTRY_ID:"wallisandfutuna",COUNTRY_CODE:"681"}, 227 | {COUNTRY_ID:"yemen",COUNTRY_CODE:"967"}, 228 | {COUNTRY_ID:"zambia",COUNTRY_CODE:"260"}, 229 | {COUNTRY_ID:"zimbabwe",COUNTRY_CODE:"263"}] -------------------------------------------------------------------------------- /log: -------------------------------------------------------------------------------- 1 | { 2 | name::Dominos Pizzay Quejas 3 | number::7349303030 4 | country::canada 5 | } 6 | { 7 | name::Nirav Desai 8 | number::8511698220 9 | country::india-other 10 | } 11 | { 12 | name::EUROPCAR ITALIA (S.P.A.) 13 | number::0276110258 14 | country::italy 15 | } 16 | -------------------------------------------------------------------------------- /num.list: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Logic-gate/callerpy/cfbc73ea366788e1ea7d841feffc1155d1ef6bbe/num.list --------------------------------------------------------------------------------