Code covered by the BSD License  

Highlights from
new useful urlread-urlreadv

Be the first to rate this file! 18 Downloads (last 30 days) File Size: 1.35 KB File ID: #30627

new useful urlread-urlreadv

by

 

function urlreadv solves most of the "Error downloading URL" problem caused by "urlread"

| Watch this File

File Information
Description

  urlreadv Returns the source code of a URL as a string.
  Syntax:
  html=urlreadv(URL);
  Description: urlreadv is a function based on java,it solves some
  problems of the function "urlread",such as "Error downloading URL" and
  avoid unreadable codes or gibberish while loading source code that contains
  Chinese charcaters

Acknowledgements

This file inspired Urlread2.

MATLAB release MATLAB 7.11 (R2010b)
Other requirements need java
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
09 Aug 2012 Renwen Lin

% MY AIM IS: to transform location/address to Latitude and Longitude by
% GOOGLE MAP API.

clc; clear;
KEY='ABQIAAAA7VerLsOcLuBYXR7vZI2NjhTRERdeAiwZ9EeJWta3L_JZVS0bOBRIFbhTrQjhHE52fqjZvfabYYyn6A';
loc0 = '上海'; loc1 = 'Shanghai';
url0 =['http://maps.googleapis.com/maps/geo?q=' loc0 '&output=json&sensor=true_or_false&hl=zh-CN&key=' KEY '&region=GB'];
[str2] = urlreadv(url0); % line (1)
% web(url0, '-browser') % line (2)

% MY PROBLEM IS: The result of line(1) differ from line(2);
% Please help me on this issue?

Contact us