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
| # Ruby through an authenticated residential proxy: Net::HTTP and Faraday. | |
| # | |
| # Proxy: QuantumProxies — https://quantumproxies.io/residential-proxies | |
| # Geo/session flags go in the username: -country-us, -session-rb1-lifetime-10 | |
| # Credentials: https://app.quantumproxies.io/register | |
| require "net/http" | |
| require "json" | |
| USER = "#{ENV.fetch('QP_USER', 'YOUR_USERNAME')}-country-us" |
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
| # Ruby through an authenticated residential proxy: Net::HTTP and Faraday. | |
| # | |
| # Proxy: QuantumProxies — https://quantumproxies.io/residential-proxies | |
| # Geo/session flags go in the username: -country-us, -session-rb1-lifetime-10 | |
| # Credentials: https://app.quantumproxies.io/register | |
| require "net/http" | |
| require "json" | |
| USER = "#{ENV.fetch('QP_USER', 'YOUR_USERNAME')}-country-us" |
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
| # Google search results -> CSV in ~20 lines (rank, title, link, snippet). | |
| # | |
| # Uses a SERP API so there's no HTML parsing and no CAPTCHA handling: | |
| # https://quantumproxies.io/serp-api (key: app.quantumproxies.io/api-keys) | |
| # | |
| # QP_API_KEY=qp_live_... python google-serp-to-csv.py "web scraping api" us | |
| import csv, os, sys | |
| import requests |
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
| # Google search results -> CSV in ~20 lines (rank, title, link, snippet). | |
| # | |
| # Uses a SERP API so there's no HTML parsing and no CAPTCHA handling: | |
| # https://quantumproxies.io/serp-api (key: app.quantumproxies.io/api-keys) | |
| # | |
| # QP_API_KEY=qp_live_... python google-serp-to-csv.py "web scraping api" us | |
| import csv, os, sys | |
| import requests |
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
| #!/usr/bin/env bash | |
| # Any webpage -> clean markdown in ONE command (curl + jq). | |
| # JS rendering, boilerplate stripping and bot walls handled by the API: | |
| # https://quantumproxies.io/scraper-api (key: app.quantumproxies.io/api-keys) | |
| # | |
| # export QP_API_KEY=qp_live_... | |
| # ./page-to-markdown.sh https://example.com # -> stdout | |
| # ./page-to-markdown.sh https://example.com > page.md # -> file | |
| # ./page-to-markdown.sh https://example.com | pbcopy # -> clipboard (macOS) |
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
| #!/usr/bin/env bash | |
| # Any webpage -> clean markdown in ONE command (curl + jq). | |
| # JS rendering, boilerplate stripping and bot walls handled by the API: | |
| # https://quantumproxies.io/scraper-api (key: app.quantumproxies.io/api-keys) | |
| # | |
| # export QP_API_KEY=qp_live_... | |
| # ./page-to-markdown.sh https://example.com # -> stdout | |
| # ./page-to-markdown.sh https://example.com > page.md # -> file | |
| # ./page-to-markdown.sh https://example.com | pbcopy # -> clipboard (macOS) |
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
| # Scrape an entire site from its sitemap.xml -> one markdown file per page. | |
| # Discovery is free (sitemap), extraction goes through a scraping API: | |
| # https://quantumproxies.io/scraper-api (key: app.quantumproxies.io/api-keys) | |
| # | |
| # QP_API_KEY=qp_live_... python sitemap-scraper.py https://example.com/sitemap.xml 20 | |
| import os, pathlib, re, sys | |
| import requests | |
| API = "https://app.quantumproxies.io/api/v1/scraper/extract" |
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
| # Scrape an entire site from its sitemap.xml -> one markdown file per page. | |
| # Discovery is free (sitemap), extraction goes through a scraping API: | |
| # https://quantumproxies.io/scraper-api (key: app.quantumproxies.io/api-keys) | |
| # | |
| # QP_API_KEY=qp_live_... python sitemap-scraper.py https://example.com/sitemap.xml 20 | |
| import os, pathlib, re, sys | |
| import requests | |
| API = "https://app.quantumproxies.io/api/v1/scraper/extract" |
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
| # Free keyword research: expand a seed keyword via Google's own | |
| # "related searches", recursively, into a deduped idea list. | |
| # | |
| # SERP data via https://quantumproxies.io/serp-api (per-search pricing, | |
| # key: app.quantumproxies.io/api-keys) | |
| # | |
| # QP_API_KEY=qp_live_... python keyword-ideas-from-serp.py "residential proxies" | |
| import os, sys | |
| import requests |
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
| # Free keyword research: expand a seed keyword via Google's own | |
| # "related searches", recursively, into a deduped idea list. | |
| # | |
| # SERP data via https://quantumproxies.io/serp-api (per-search pricing, | |
| # key: app.quantumproxies.io/api-keys) | |
| # | |
| # QP_API_KEY=qp_live_... python keyword-ideas-from-serp.py "residential proxies" | |
| import os, sys | |
| import requests |