import scrapy
import urllib

class Demo(scrapy.Spider):
  name = 'demo'

  def parse(self, response):
    print(response.body)

  def start_requests(self):
    username = '{PROXY_USERNAME}'
    password = '{API_KEY}'
    url      = 'https://cloudflare.com/cdn-cgi/trace' # Insert your target URL here
    host     = 'network.joinmassive.com'
    port     = 65534
    proxy    = f'http://{username}:{password}@{host}:{port}'

    yield scrapy.Request(url, callback=self.parse, meta={'proxy': proxy})