Today, through the search of data to understand the Web page crawl function, the application of HttpWebRequest and HttpWebResponse functions, from the http://www.showji.com site to capture the attribution of informationIt should be said that this method is learned from other forums, the process is as follows:Through the IE9 network monitoring function:By analyzing the captured data, you will get the information of the place of attribution.Analyze a pi
Objective:I am learning PHP, do this is also learn from Baidu examples and other programs. Interested small partners can communicate with each otherFirst, the HTML query page Then it's the query Display page (using the Curl operation)1PHP2 Header(' Content:text/html;charset:utf-8 ');3 $ch=curl_init ();4 $phone=isset($_post[' Phone ']?$_post[' Phone ']:false;5 $url= ' http://apis.baidu.com/apistore/mobilenumber/mobilenumber?phone= '.$phone;6 $header=Array(7' Apikey: Fill in your API ',8 );
string
return message, reason for failure when request fails
Data node Field Description:
Field name
field Type
Field Description
Prefix
Integer
Mobile number segment.
Mobile
String
Search for mobile phone number
Province
String
Name of the province to which it belongs.
City
String
City name of the place of
']; $city = $res [' retdata '] [' City ']; $suit = $res [' retdata '] [' suit ']; Turn the data of the query into an array to return to the $checkData [0]= $phone;//The telephone number of the query $checkData [1]= $prefix;//card number segment, can be saved up later data can be used directly in the number segment to query the place of the telephone $checkData [2]= $supplier;//card operators, such as China Mobile $checkData [3]= $province;//card belonging to the province $checkData [4]= $
There are generally two ways to implement a attribution query, one is to query through the attribution API, and the other is to query the local database. Both methods have advantages and disadvantages, the best combination of use, I used this time is to query the database method. First, you need to download the attribution database callhomedb.db from the Internet
1. Free WebService Address: http://www.webxml.com.cn/zh_cn/index.aspxThere are many Web services such as weather forecast, cell phone attribution query and so on.2. Invoke the Weather forecast service example:Generate the client code using the Wsimport command that comes with the JDK:Wsimport-keep http://webservice.webxml.com.cn/WebServices/WeatherWS.asmx?wsdl The discovery throws the following exception:And then I found it on the Internet.http://blog
2014 Mobile number Attribution database
2014 the latest version of "Cell Phone number Attribution database" (Updated: April 6, 2014), a total of 10,000 records.Data fields:-number segment (i.e., first 7 digits of the number)-Province-City-Supplier (incl., communication protocol)Sample data:"1300000", "Beijing", "Beijing", "China Unicom (GSM)""1300001", "Jiangsu", "Changzhou", "China Unicom (GSM)""13
mentioned above:In Webapi, it involves an important class, HttpWebRequest.Learn Link:httpwebrequest DetailedSample Demo:code example:1. Front-End Code:1 @{2 viewbag.title = "Index";3 Layout = null;4 }5@*Scriptsrc= "~/views/js/jquery-1.7.1.js">Script>*@6@*Scriptsrc= "~/views/js/jquery.min.js">Script>*@7 Scriptsrc= "~/scripts/jquery-1.8.2.min.js">Script>8 H2>IndexH2>9Please enter your mobile phone number:inputtype= "text"ID= "Inputphonenum"value=""/>BR/>Ten inputtype= "button"value= "Get the place
First, prefaceBecause sometimes in the work to the domain name resolution and obtain the relevant IP attribution information, so write the script, convenient for their own query use.Ii. contents of the script#!/usr/bin/envpython#coding:utf-8importdns.resolverimporturllibimportchardetimport sysimportreip_list=[]query_domain=raw_input (' Pleaseinputa domain: ') # first query whether there is a CNAME, if any, get to a record through CNAME, if not directl
Android mobile phone number attribution query implementation
This part was learned yesterday, but because of the overload of eyes, we need to plan the time in the future.
Currently, the number attribution query in the mobile phone is mainly in two ways: 1. online query, 2. Match the local number attribution database.
I think it is best to combine the two methods.
April 2017 The latest version of the mobile phone number segment attribution, also called the cell phone attribution to the databaseTotal 360,569 Records, three formats: mysql,mssql,access MDB formatFree for everyone, very complete.Field: Mobile number Top 7, province, city, area code, operator, zip codeThe end is as follows:360551 1899981 Xinjiang Urumqi China Telecom 0991 8300003605521899982 Xinjiang Urum
2014 Mobile number Attribution database
2014 the latest version of "Cell Phone number Attribution database" (Updated: April 6, 2014), a total of 10,000 records.Data fields:-Number segment (ie. Number first 7 digits)-Province-City-Supplier (incl., communication protocol)Demo Sample data:"1300000", "Beijing", "Beijing", "China Unicom (GSM)""1300001", "Jiangsu", "Changzhou", "China Unicom (GSM)""
Tags: Dahne linux operations adminadmin1.4Permissions and Attribution:Basic permissions:Categories of basic permissions:Access mode (permissions):---read: Allow viewing of content--read(R permissions: Ability to view this directory content LS)---write: Allow content to be modified--write(W Permissions: Ability to perform actions such as Rm/mv/cp/mkdir/touch to change directory contents)---executable: Allow to run and switch--execute(x permissions: Ability to switch to this directory on CD)Permis
A simple demo, from aggregation data to apply for mobile phone number attribution to the data interface;
Enter the query number in the EditText, get the number and use HttpURLConnection to get the JSON data in the child thread, then parse;
After data acquisition is complete, update the UI in the main thread to show the number attribution information.
Layout file
Java code
Package com.e
Introduction of API Store
API store is an API aggregation platform that can provide a variety of data services to the outside, more representative of the Dev store, Baidu API store and aggregated data, and so on, such services through the provision of the rest API interface to expose to third party developers.API Store provides many types of data services, there are common life, application development, financial management, travel tickets and other APIs, but some interfaces are charged, but al
· ROM IntroductionAfter brushing the machine please go to the dialer-settings-background calls, uncheck the background calls.This version uses the autumn kernel adaptation, has fixed the call unknown and lock screen operators and other issues, the perfect support of telecom card, telecom stability 3G, in this thanks to the autumn Big Dragon Pig. Added the call recording, but found that the changes did not, and then repair.Unicom, mobile users, please go to *#* #4636 #*#* Select Gsm/cdma-auto (Su
Clicking will open the service.Sivaddress.setonclicklistener (NewOnclicklistener () {@Override Public voidOnClick (View v) {if(sivaddress.ischecked ()) {sivaddress.setchecked (false); StopService (NewIntent (settingactivity. This,//writing this only means onclicklistener, so write Settingactivity.this,Addressservice.class));//Stop Attribution Service}Else{sivaddress.setchecked (true); StartService (NewIntent (settingactivity. This, Addressservice.clas
Example of the mobile phone number attribution-related information query function implemented by Python, python example
This example describes how to query information related to mobile phone number attribution in Python. We will share this with you for your reference. The details are as follows:
Query the location of the specified mobile phone number and other related information. Python implementation:
Mo
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.