Get everyone's online friend address book and synchronize it to the mobile phone

Source: Internet
Author: User

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?

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.