Renren has an address book function. After you create a business card, you can exchange contact information with your friends. Everyone's online friends are generally classmates, and most people's contact information is more authentic. We can try to obtain frequently used contact methods such as email and mobile phone number of friends in the transcript in batch and edit them into contact formats such as Gmail and outlook. Then you can import them to mobile phones in batches. Is it convenient? Okay. Let's get started.
- To do this, you must first sharpen the tool. Here we recommend an HTTP packet capture tool-httpwatch (which is a powerful tool for my personal Ajax Development). You can search and download it online. After installation, open ie -- tool -- httpwatch Professional (I installed Pro version) to start httpwatch.
- Click red record to start recording the webpage Request Response Process
- Click Renren's navigation friends-record
By viewing the httpwatch record, we found that the content of a request is very useful: http://www.renren.com/listcards. this request received all the names of friends, in JSON format. /(^ O ^)/, which can be directly used by Js.
However, the information contained in the call is not what we want, because *** is called in the middle of the call. It is estimated that this is the data that everyone uses when clicking. OK, we casually find a friend Click to have a look, another request was noticed by us, http://www.renren.com/showcard? Friendid = XXXX. The contact information with the ID of xxxx friend is returned, which is also in JSON format.
Now, we will program and change the address above the ID request, and save the result to the text format of the Google or outlook contact to export it to the mobile phone or gmail, I personally wrote a simple JS script and updated the phone numbers of more than 200 friends to my mobile phone.
In fact, I think that in the computer world, we are willing to write a script to solve a lot of problems. I also saved pictures of everyone online in batches and saved them to Gmail. As soon as the mobile phone is synced, the contacts on the mobile phone will show pictures of the students. do you also think it is wonderful?