This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let urls = await page.evaluate(() = { | |
| let results = []; | |
| let items = document.querySelectorAll('li.product__list--item'); | |
| items.forEach((item) = { | |
| let name = item.querySelector('a.product__list--name').innerText | |
| let price = item.querySelector('span.pdpPrice').innerText | |
| let discount = item.querySelector('div.listingDiscnt').innerText | |
| results.push({ | |
| prod_name: name, | |
| prod_price: price, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const puppeteer = require('puppeteer'); | |
| function run () { | |
| return new Promise(async (resolve, reject) ={ | |
| try { | |
| const browser = await puppeteer.launch(); | |
| const page = await browser.newPage(); | |
| var args = process.argv[2] | |
| await page.goto("https://www.croma.com/"); | |
| await page.click('button.mobile__nav__row--btn-search') | |
| await page.type('input#js-site-search-input', args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #installing respective modules | |
| import smtplib | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import smtplib | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| mail_content = '''This is a simple mail''' | |
| #The mail addresses and password | |
| sender_address = 'sender123@gmail.com' | |
| sender_pass = 'xxxxxxxx' | |
| receiver_address = 'receiver567@gmail.com' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import smtplib | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| mail_content = 'This is a simple mail' | |
| #The mail addresses and password | |
| sender_address = 'sender123@gmail.com' | |
| sender_pass = 'xxxxxxxx' | |
| receiver_address = 'receiver567@gmail.com' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import smtplib | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| mail_content = 'This is a simple mail' | |
| #The mail addresses and password | |
| sender_address = 'sender123@gmail.com' | |
| sender_pass = 'xxxxxxxx' | |
| receiver_address = 'receiver567@gmail.com' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import email, smtplib, ssl | |
| from email import encoders | |
| from email.mime.base import MIMEBase | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import email, smtplib, ssl | |
| from email import encoders | |
| from email.mime.base import MIMEBase | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| #The mail addresses and password | |
| sender_email = 'sender123@gmail.com' | |
| password = 'xxxxxxxx' | |
| receiver_address = 'receiver567@gmail.com' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import email, smtplib, ssl | |
| from email import encoders | |
| from email.mime.base import MIMEBase | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| import email, smtplib, ssl | |
| from email import encoders | |
| from email.mime.base import MIMEBase | |
| from email.mime.multipart import MIMEMultipart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import email, smtplib, ssl | |
| from email import encoders | |
| from email.mime.base import MIMEBase | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| #The mail addresses and password | |
| sender_email = 'sender123@gmail.com' | |
| password = 'xxxxxxxx' | |
| receiver_address = 'receiver567@gmail.com' |