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'); // Install puppeteer from https://www.npmjs.com/package/puppeteer | |
(async () => { | |
const browser = await puppeteer.launch({headless:false, // `true` if you want to run in headless mode and hidden | |
defaultViewport:{ | |
width: 1080, // adjust as required | |
height: 720 // adjust as required | |
}}); | |
const page = await browser.newPage(); | |
await page.goto('https://google.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
This error is basically due to entries in the sources.list file. | |
Open /etc/apt/ using following command: | |
cd /etc/apt/ | |
Open the sources.list file using: | |
sudo nano sources.list | |
Now paste the following code at the last line of the file: |
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
<select id="countries" value="countries"> | |
<option value="" selected="True">Select Country</option> | |
<option value="AF">Afghanistan</option> | |
<option value="AL">Albania</option> | |
<option value="DZ">Algeria</option> | |
<option value="AS">American Samoa</option> | |
<option value="AD">Andorra</option> | |
<option value="AO">Angola</option> | |
<option value="AI">Anguilla</option> | |
<option value="AQ">Antarctica</option> |