${price}
${url}
`, 35 | }); 36 | console.log(nodemailer.getTestMessageUrl(info)); 37 | } 38 | 39 | const watchPrice = (priceTaget, url, schedule = '*/5 * * * * *') => { 40 | cron.schedule(schedule, () => fetchPrice(url, priceTaget)); 41 | }; 42 | -------------------------------------------------------------------------------- /Javascript/Amazon_Price_Tracker/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "amazon-price-tracker", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "author": "", 10 | "license": "ISC", 11 | "dependencies": { 12 | "axios": "^0.21.1", 13 | "cheerio": "^1.0.0-rc.6", 14 | "node-cron": "^3.0.0", 15 | "nodemailer": "^6.5.0" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Javascript/Automate_Tinder/Readme.md: -------------------------------------------------------------------------------- 1 | # Automate Tinder 2 | 3 | Too bored of Right-Swiping Tinder? This Script allows you to automate Right-Swipes on Tinder. You just need to go to the Official Website 4 | and kickstart the Developer Console and push the Code. Press ENTER and let the magic redeem itself. 5 | 6 | [Not be used for Malicious Purposes] 7 | 8 |  9 | -------------------------------------------------------------------------------- /Javascript/Automate_Tinder/automateTinder.js: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | Too bored of Right-Swiping Tinder? This Script allows you to automate Right-Swipes on Tinder. You just need to go to the Official Website 4 | and kickstart the Developer Console and push the Code. Press ENTER and let the magic redeem itself. 5 | 6 | */ 7 | 8 | a = setInterval( 9 | function(){ 10 | var elem = document.getElementsByClassName("button Lts($ls-s) Z(0) Cur(p) Tt(u) Bdrs(50%) P(0) Fw($semibold) recsGamepad__button D(b) Bgc(#fff) Wc($transform) End(15px) Scale(1.1):h"); 11 | elem[0].click() 12 | },2000) 13 | -------------------------------------------------------------------------------- /Javascript/Blog_Image_Finder/ImageFinder.js: -------------------------------------------------------------------------------- 1 | // All DOM variables 2 | let container = document.querySelector('.container'); 3 | 4 | // Enter your Unsplash API key here 5 | let key = ''; 6 | 7 | let btn = document.querySelector('#btn'); 8 | let input = document.querySelector('#query'); 9 | 10 | // function to retrieve photos from unsplash API 11 | async function getPhotos(reqURL){ 12 | let res = await fetch(reqURL); 13 | let data = await res.json(); 14 | console.log(data); 15 | if(data.results.length){ 16 | for(let i = 0; i < data.results.length; i++){ 17 | let img = document.createElement('img'); 18 | img.src = data.results[i].links.download; 19 | img.height = "200"; 20 | img.width = "200"; 21 | container.appendChild(img); 22 | img.addEventListener('click',()=>{ 23 | alert(img.src); 24 | }) 25 | } 26 | }else{ 27 | alert('No images Found for this input!'); 28 | } 29 | } 30 | 31 | // init function 32 | function init(){ 33 | let word = input.value; 34 | input.value = ""; 35 | container.textContent = ""; 36 | let reqURL = `https://api.unsplash.com/search/photos?per_page=30&query=${word}&client_id=${key}`; 37 | getPhotos(reqURL); 38 | } 39 | 40 | // Setting up all event listeners 41 | btn.addEventListener('click', init); 42 | document.addEventListener("keypress",e =>{ 43 | if(e.which === 13)init(); 44 | }) 45 | -------------------------------------------------------------------------------- /Javascript/Blog_Image_Finder/README.md: -------------------------------------------------------------------------------- 1 | # Script in JS used to get images 2 | 3 | ## About 4 | 5 | Blogs are like caffeine for writers for which they always tries to find interesting stuffs(images/quotes/GIFs) to encourage readers to read even a long blog.Now, Blogs are of various genres, so it is very difficult for a writes to get apt images to insert in their blog. So, I've developed a script which is very much easy to use and which can find 20+ images instantly and also provides the link(Unsplash link). 6 | 7 | ## Explanation of code 8 | 9 | - unsplash API is used to fetch all [images](https://api.unsplash.com/search/photos?per_page=30&query=[word]&client_id=[key]) 10 | - An API key is required to use the API in your app, which can easily be obtained from [unsplash official website](https://unsplash.com/developers). 11 | - Async/Await is used to consume promises. 12 | - Script is dependent on a basic boilerplate HTML file, which displays all the images retrieved by the script. 13 | - To get link of any image, just click on that, a pop-up/alert window with link will appear. 14 | 15 | ## To run the code 16 | 17 | - Clone the folder 18 | - Inside the folder open index.html or in some editor you can use live-server to run HTML file. 19 | - Then search images of which category/genre you want. 20 | 21 | ## Output 22 |  23 | 24 | Made by [Piyush Gupta](https://github.com/gupta-piyush19) 25 | -------------------------------------------------------------------------------- /Javascript/Blog_Image_Finder/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
42 |
43 | 44 | Subhradeep10 45 | 46 | |
47 |