MCPcopy
hub / github.com/scrapy/scrapy / make_request

Function make_request

tests/test_pqueues.py:229–237  ·  view source on GitHub ↗
(index, data)

Source from the content-addressed store, hash-verified

227 return f"https://toscrape.com/{index}"
228
229 def make_request(index, data):
230 meta = {}
231 if data.get("start", False):
232 meta["is_start_request"] = True
233 return Request(
234 url=make_url(index),
235 priority=data.get("priority", 0),
236 meta=meta,
237 )
238
239 input_requests = [
240 make_request(index, data) for index, data in enumerate(input_, start=1)

Callers 1

test_pop_orderFunction · 0.70

Calls 3

RequestClass · 0.90
make_urlFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…