File Exchange

image thumbnail

new useful urlread-urlreadv

version 1.0.0.0 (1.35 KB) by vimmiv
function urlreadv solves most of the "Error downloading URL" problem caused by "urlread"

0 Downloads

Updated 03 Mar 2011

View License

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

Comments and Ratings (1)

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?

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: urlread2