Harvested on
https://twitter.com/Apple | | https://twitter.com/Apple | Apple | https://twitter.com/Apple | @Apple | | | Promoted | https://www.apple.com/in/shop/goto/buy_mac/macbook_air/15_inch_m2?cid=wwa-in-soc-... | https://www.apple.com/in/shop/goto/buy_mac/macbook_air/15_inch_m2?cid=wwa-in-soc-... | 45.3K | https://twitter.com/Apple/status/1671423392363470848/analytics | 4, 2, 19 | https://pbs.twimg.com/media/FzDXHYjaUAEt0KE?format=jpg&name=120x120 | | Introducing the first-ever MacBook Air 15″. Impressively big. Impossibly thin. | | | | https://twitter.com/home | https://twitter.com/home | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC |
https://twitter.com/elonmusk | https://pbs.twimg.com/profile_images/1590968738358079488/IY9Gx6Ok_normal.jpg | https://twitter.com/elonmusk | Elon Musk | https://twitter.com/elonmusk | @elonmusk | https://twitter.com/elonmusk/status/1677470862436450308 | | | | | 23.7M | https://twitter.com/elonmusk/status/1677470862436450308/analytics | 23.2K, 25.4K, 364.8K | https://pbs.twimg.com/media/F0eS2dyXgAAIqng?format=jpg&name=small | https://twitter.com/elonmusk/status/1677470862436450308/photo/1 | Just drove Cybertruck around Austin! | 7h | · | | https://twitter.com/home | https://twitter.com/home | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC |
https://twitter.com/narendramodi | https://pbs.twimg.com/profile_images/1565985672501927936/d-r-h241_normal.jpg | https://twitter.com/narendramodi | Narendra Modi | https://twitter.com/narendramodi | @narendramodi | https://twitter.com/narendramodi/status/1677351157667336195 | https://twitter.com/blob:https://twitter.com/19e6c56c-f7b3-46db-96e2-7a32514a08e8... | | | | 947.6K | https://twitter.com/narendramodi/status/1677351157667336195/analytics | 1,243, 8,648, 39.3K | | | गोरखपुर में लोगों के जोश और उत्साह ने मुझे नई ऊर्जा से भर दिया है। इस प्रेम और स्... | 15h | · | | https://twitter.com/home | https://twitter.com/home | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC |
https://twitter.com/randomsena | https://pbs.twimg.com/profile_images/1399061346956713991/vTrN6VhT_normal.jpg | https://twitter.com/randomsena | Randomsena | https://twitter.com/randomsena | @randomsena | https://twitter.com/randomsena/status/1677565027262554112 | | | | | 6,417 | https://twitter.com/randomsena/status/1677565027262554112/analytics | 211, 179, 753 | | | अधर्मियों को अरेस्ट करवाने में मजा आता है? | 1h | · | | https://twitter.com/home | https://twitter.com/home | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC |
https://twitter.com/sambitswaraj | https://pbs.twimg.com/profile_images/1566296224579260416/viwvn3MD_normal.jpg | https://twitter.com/sambitswaraj | Sambit Patra | https://twitter.com/sambitswaraj | @sambitswaraj | https://twitter.com/sambitswaraj/status/1677313487754903552 | | | | | 348.4K | https://twitter.com/sambitswaraj/status/1677313487754903552/analytics | 863, 1,051, 11.6K | https://pbs.twimg.com/media/F0cDuEVX0AI7bzG?format=jpg&name=small | https://twitter.com/sambitswaraj/status/1677313487754903552/photo/1 | स्नेह की वर्षा… | 17h | · | | https://twitter.com/home | https://twitter.com/home | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC |
| | | | | | | | | | | | | | https://pbs.twimg.com/semantic_core_img/1408381495283093511/aK44_IGQ?format=jpg&n... | | | | · | | https://twitter.com/home | https://twitter.com/home | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC |
https://twitter.com/sambitswaraj | https://pbs.twimg.com/profile_images/1566296224579260416/viwvn3MD_normal.jpg | https://twitter.com/sambitswaraj | Sambit Patra | https://twitter.com/sambitswaraj | @sambitswaraj | https://twitter.com/sambitswaraj/status/1677565358163779585 | https://twitter.com/blob:https://twitter.com/7cf6d2dc-ec49-47c9-803c-fce3bc12bce8... | | | | 17.4K | https://twitter.com/sambitswaraj/status/1677565358163779585/analytics | 129, 273, 799 | | | देश के संसाधनों पर पहला हक ‘गरीबों’ का है। | 1h | · | | https://twitter.com/home | https://twitter.com/home | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC |
| | | | | | | | | | | | | | | | | | | | https://twitter.com/home | https://twitter.com/home | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC | 2023-07-08 07:46:34 UTC |
Sample code snippets to quickly import data set into your application
For more information on how to automatically trigger an import please reference
our WebHook API guide
Integrating with Java
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.util.Arrays;
public class HelloWorld {
public static void main(String[] args) {
try {
URL urlCSV = new URL(
"https://cache.getdata.io/n121672_5364f90b9ba5950a548ed2d204378203eses/latest_all.csv"
);
URLConnection urlConn = urlCSV.openConnection();
InputStreamReader inputCSV = new InputStreamReader(
((URLConnection) urlConn).getInputStream()
);
BufferedReader br = new BufferedReader(inputCSV);
String line;
String[] fields;
while ((line = br.readLine()) != null) {
// Each row
fields = line.split(",");
System.out.println(Arrays.toString(fields));
}
// clean up buffered reader
br.close();
} catch (Exception e) {
System.out.println(e.getMessage());
}
}
}
Integrating with NodeJs
const csv = require('csv-parser');
const https = require('https');
const fs = require('fs');
const file = fs.createWriteStream("temp_download.csv");
const request = https.get(
"https://cache.getdata.io/n121672_5364f90b9ba5950a548ed2d204378203eses/latest_all.csv",
function(response) {
response.pipe(file);
}
);
file.on('finish', function() {
file.close();
fs.createReadStream('temp_download.csv').pipe(csv()).on('data', (row) => {
// Each row
console.log(row);
}).on('end', () => {
console.log('CSV file successfully processed');
});
});
Integrating with PHP
$data = file_get_contents("https://cache.getdata.io/n121672_5364f90b9ba5950a548ed2d204378203eses/latest_all.csv");
$rows = explode("\n",$data);
$s = array();
foreach($rows as $row) {
# Each row
var_dump( $row);
}
Integrating with Python
import csv
import urllib2
url = 'https://cache.getdata.io/n121672_5364f90b9ba5950a548ed2d204378203eses/latest_all.csv'
response = urllib2.urlopen(url)
cr = csv.reader(response)
for row in cr:
# Each row
print row
Integrating with Ruby
require 'open-uri'
require 'tempfile'
require 'csv'
temp_file = Tempfile.new( "getdata", :encoding => 'ascii-8bit')
temp_file << open("https://cache.getdata.io/n121672_5364f90b9ba5950a548ed2d204378203eses/latest_all.csv").read
temp_file.rewind
CSV.foreach( open(uri), :headers => :first_row ).each do |row|
# Each row
puts row
end