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
[ | |
{ | |
"selector": "article.product_pod", | |
"get": "json", | |
"extract": [ | |
{ | |
"selector": "h3", | |
"get": "text", | |
"as": "title" | |
}, |
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
[ | |
{ | |
"selector": "article.product_pod h3", | |
"get": "text" | |
}, | |
{ | |
"selector": "article.product_pod h3 a", | |
"get": "attribute", | |
"attribute": "href" | |
} |
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
[ | |
{ | |
"selector": "article.product_pod h3", | |
"get": "text", | |
"data": [ | |
"A Light in the ...", | |
"Tipping the Velvet", | |
"Soumission", | |
"Sharp Objects", | |
"Sapiens: A Brief History ...", |
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
<article class="product_pod"> | |
<div class="image_container"> | |
<a href="catalogue/a-light-in-the-attic_1000/index.html"><img | |
src="media/cache/2c/da/2cdad67c44b002e7ead0cc35693c0e8b.jpg" alt="A Light in the Attic" | |
class="thumbnail" /></a> | |
</div> | |
<h3> | |
<a href="catalogue/a-light-in-the-attic_1000/index.html" title="A Light in the Attic">A Light in the ...</a> | |
</h3> |
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
{ | |
"data": [ | |
{ | |
"title": "Our Band Could Be ...", | |
"price": "£57.25", | |
"image": "media/cache/54/60/54607fe8945897cdcced0044103b10b6.jpg", | |
"link": "catalogue/our-band-could-be-your-life-scenes-from-the-american-indie-underground-1981-1991_985/index.html" | |
}, | |
{ | |
"title": "Libertarianism for Beginners", |
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
[ | |
{ | |
"selector": "#someId .someClass a", | |
"get": "text" | |
} | |
] |
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
[ | |
{ | |
"selector": "article.product_pod", | |
"get": "json", | |
"extract": [ | |
{ | |
"selector": "h3", | |
"get": "text", | |
"as": "title" | |
}, |
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'); | |
const express = require('express'); | |
const app = express(); | |
const port = 3000; | |
app.get('/', async (req, res) => { | |
const {url} = req.query; | |
if(!url) { | |
res.status(400).send("Bad request: 'url' param is missing!"); |
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'); | |
async function run() { | |
const browser = await puppeteer.launch({ headless: false }); | |
const page = await browser.newPage(); | |
const proxy = 'https://proxybot.io/api/v1/API_KEY?url='; | |
const url = 'https://whatismyipaddress.com/'; | |
const pageUrl = proxy + url; |
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'); | |
async function run() { | |
const browser = await puppeteer.launch({ | |
headless: false, | |
args: [ '--proxy-server=200.73.128.156:3128' ] | |
}); | |
const page = await browser.newPage(); | |
const pageUrl = 'https://whatismyipaddress.com/'; |
NewerOlder