Documentation

Una is developed by Una Technologies Limited

All rights reserved

© 2022 Una Technologies Limited

Print

Downloading Online Text

Get text from internet

				
					{"blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"Resources_getTextByURL\" disabled=\"true\" x=\"-22\" y=\"67\"><value name=\"url\"><shadow type=\"text\" disabled=\"true\"><field name=\"TEXT\"/></shadow></value></block></xml>"}
				
			

This block is used to get the text from online resources.

Parameters: String (URL)

Output: Text

Sample code:

				
					{"blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><block type=\"pxt-on-start\" x=\"0\" y=\"0\"><statement name=\"HANDLER\"><block type=\"basic_consoleLogText\"><value name=\"text\"><block type=\"Resources_getTextByURL\"><value name=\"url\"><shadow type=\"text\"><field name=\"TEXT\">https://dictionary.cambridge.org/us/dictionary/english/text</field></shadow></value></block></value></block></statement></block></xml>"}
				
			

The output:

Get Text From Internet - Output
Next Downloading Online Photo