是否可以使用AngelList API获取AngelList网站内的整个公司(初创公司)列表而不知道所有公司的ID?
或者,有没有办法获得所有公司ID?
我正在尝试使用随机网址的JSON解析器,因为AngelList网址随机用于位置,市场和其他网址。
我想在txt文件中获取所有AngelList初创公司和公司
for (int h = 1612; h<=1885; h++){
do {
// change the URL as per the requirement and also paginating it
String libURL = "https://api.angel.co/1/tags/" + h + "/startups?page="
+ i;
InputStream in = URI.create(libURL).toURL().openStream();
// writing each page into a seperate file
FileOutputStream fout = new FileOutputStream(
"/Users/Fabio/Desktop/FilesAngellist/file" + i + ".txt");
byte data[] = new byte[1024];
int count;
while ((count = in.read(data, 0, 1024)) != -1) {
fout.write(data, 0, count);
}// end of while
if (i == 1) {
DownloadJobJson db = new DownloadJobJson(); // code to pull
// "last_page" value
// from json file
pagenumber = db.DownloadJobJson1();
}// end of if
i = i + 1;
} while (i <= pagenumber);// end of do-while()
}
这是AngelList URL
的JSON下载程序的代码答案 0 :(得分:-2)
使用linkedin j项目解决