Relative Content

Tag Archive for node.js

How to extract exact url of a insta profile picture using cheerio?

I m making a insta profile image extracter using cheerio now the problem is it is not fetching the exact size of a image like when i inspected a image page on insta in the chrome developer tools i was able to see full and hd image in a new tab now in my code i my code it is just fetching the 320×320 image here is the example of image url that my code fetch’s.
https://instagram.fkhi25-1.fna.fbcdn.net/v/t51.2885-19/437937765_2168167833531480_2736325614077431115_n.jpg?stp=dst-jpg_s320x320_tt6&_nc_ht=instagram.fkhi25-1.fna.fbcdn.net&_nc_cat=1&_nc_oc=Q6cZ2AHo6DXdTchbD3TRojEikoLin3hj-b8oxc_jMqzHut5s3KusCglE2AxiS0ZSFDdNx5Q&_nc_ohc=QONOOjHPgZ4Q7kNvgGD_IME&_nc_gid=efc7a41b006a4b03b7f8317f333ad110&edm=AOQ1c0wBAAAA&ccb=7-5&oh=00_AYDr_14nnokGjuhvgNMDdakPa6lbRc53lreWp_SeztiLww&oe=67739EAE&_nc_sid=8b3546

Node.js Error: ENOENT: no such file or directory, open ‘D:\Projects\Bookmarklets\images\easyweb-32.png

I have a question.
In the main code block, I am calling createRoundedCorners(fileName1, fileName2) function that takes an existing fileName1 image and from it creates fileName2 image with rounded corners. Then, I am calling imageToBase64(filePath) to read this image file and create base64 string from it. But, for some reason, on the first run, imageToBase64(filePath) function throw an exception

Node.js Error: ENOENT: no such file or directory, open ‘D:\Projects\Bookmarklets\images\easyweb-32.png

I have a question.
In the main code block, I am calling createRoundedCorners(fileName1, fileName2) function that takes an existing fileName1 image and from it creates fileName2 image with rounded corners. Then, I am calling imageToBase64(filePath) to read this image file and create base64 string from it. But, for some reason, on the first run, imageToBase64(filePath) function throw an exception