Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

Question list filters

Filter by
Sorted by
Tagged with
Filter by Employee ID
Best practices
0 votes
0 replies
35 views

I have buildbot version 3.X configured the standard way: a master and multiple workers. A worker can build artifacts and then copy them to a directory on the server where the master is running using ...
Score of 1
1 answer
78 views

This morning, my production website went down with a "Bad Request" error. It was working the day before, and I made no changes that might have caused the error. Below is the traceback I ...
Score of 1
1 answer
45 views

I have a device with an SSL certificate and I want to pull data from it using twisted.web.client.Agent. The cert is self-signed, and expired. I can't modify the device to do anything about that. I'm ...
Score of 4
2 answers
465 views

I have code that uses Twisted so I've written a test function for it and decorated it with @pytest_twisted.ensureDeferred. The function awaits on some Deferreds. Then, I need to run some aiohttp ...
Score of 1
0 answers
64 views

I am trying to combine two bits of code. The first is a simple Twisted looping call that runs once per minute. A simple scheduler type setup. def minuteCheck(): # Do some stuff once a minute like ...
Score of 0
1 answer
38 views

I don't know why this code works on my windows computer, but just blocks on my raspberry pi. from twisted.internet import reactor, ssl, threads from autobahn.twisted.websocket import ...
Score of 3
2 answers
194 views

I have this spider: import logging from scrapy import Spider, Request, settings from dummy import settings from dummy.items import DummyItem LOGGER = logging.getLogger(__name__) class DummySpider(...
Score of 1
1 answer
75 views

I've got a scrapy spider that I'm running in a different fashion than usual because I sometimes want to run the spider again after it finishes. Here's my code: class LinkExtractorSpider(scrapy....
Score of 0
2 answers
192 views

I need to send messages to an XMPP server. Only send - I don't need to process replies, make a bot, or anything like that. When using the xmpppy module, it goes something like this: from xmpp import ...
Score of 0
2 answers
87 views

I have an HTTP client written in Twisted that sends requests to an API of some site from a deferred. It goes something like this (somewhat simplified): from json import loads from core import output ...
Score of 0
1 answer
62 views

I want to establish a non-encrypted connection to a server and then, upon sending an agreed-upon command, to switch to a TLS-encrpted connection. It seems that Twisted's startTLS is meant exactly for ...
Score of -1
1 answer
115 views

I am writing an FTP server using the Python framework Twisted. Twisted has its own plain FTP implementation - but it doesn't support FTPS. I've noticed that most clients connect and immediately issue ...
Score of 0
2 answers
97 views

I am having some issues related to the twisted http framework. Specifically, I am trying to implement the usage of threads.deferToThread with callbacks, to allow for better concurrency, which works ...
Score of 0
1 answer
204 views

I have an app written using the Twisted framework, that communicates various data (mostly - log entries in JSON format) to a variety of logging servers using output plug-ins. I would like to make it ...
Score of 1
1 answer
214 views

To reproduce my issue python 3.12.1 scrapy 2.11.2 pytest 8.2.1 In bookspider.py I have: from typing import Iterable import scrapy from scrapy.http import Request class BookSpider(scrapy.Spider): ...

15 30 50 per page
1
2 3 4 5
232