Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- $feed_img_url = $feed_item->getImageVersions2()->candidates[0]->getUrl()."\n";
- $img = "results/".$feed_id_str."/".$feed_id_str.".jpeg";
- file_put_contents($img, file_get_contents($feed_img_url));
- } catch (Exception $e) {
- echo $e->getCode();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement