Skip to content

Instantly share code, notes, and snippets.

import requests
from urllib.parse import urljoin
import tempfile
import time
import re
class Walle:
def __init__(self, api_key) -> None:
self.api = Api(api_key)
self.Customer = Customer(self)
import walle from walle-python
from playwright.sync_api import sync_playwright
walle.api_key = 'your_api_key'
customer = walle.Customer.create(
email = 'sam@usewalle.com',
phone_number = '8888888888'
)
function FindProxyForURL(url, host) {
var braintreePattern = new RegExp("braintree-api.com");
var googlePattern = new RegExp("https://www.google.com");
if (braintreePattern.test(url)) {
return "PROXY 127.0.0.1:8080";
}
return "DIRECT";
}
function FindProxyForURL(url, host) {
if (shExpMatch(url, "https://payments.braintree-api.com/graphql") || shExpMatch(url, "deposit.shopifycs.com") ) {
return "PROXY 127.0.0.1:8080";
}
return "DIRECT";
}
require 'open-uri'
require 'public_suffix'
require 'nokogiri'
require 'httparty'
class Crawler
attr_reader :uri
def initialize(hospital_website)
@uri = URI.parse(hospital_website)