1

I'm looking for a program, user script, browser plugin, web-service, or anything else that would allow me to ask several questions at once on Quora. Any OS, any license, any price is fine. CLI or GUI. Ideally, a free Python library. I am aware that Quora has no official API to do so.

3
  • 1
    "at once": do you mean "one after the other very fast" or it must really be in parallel?
    – Nicolas Raoul
    Mar 29, 2016 at 4:41
  • 2
    @NicolasRaoul just from a user standpoint: e.g. you click "ask those 10 questions", and it will post it for you (parallel or sequential, both are fine). Mar 29, 2016 at 5:18
  • 1
    OK, I have to ask: what's the use case here? I just can't figure out what this is for... Mar 30, 2016 at 12:58

1 Answer 1

2

There is no direct out-of-box software, since it affect only small amount of users.

However this should be fairly easy to perform by the following methods:

Since you mention Python (Java or PHP also would work), you can use Selenium plus web driver (e.g. Chrome, PhantomJS), so you can simulate user journey. Here is sample unit test which goes to http://example.com then check if Example is present on the website:

#!/usr/bin/env python3

import unittest
from selenium import webdriver

class FooTest(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Firefox()
        self.base_url = "http://example.com"

    def is_text_present(self, text):
        return str(text) in self.driver.page_source

    def test_example(self):
        self.driver.get(self.base_url + "/")
        self.assertTrue(self.is_text_present("Example"))

if __name__ == '__main__':

    suite = unittest.TestLoader().loadTestsFromTestCase(FooTest)
    result = unittest.TextTestRunner(verbosity=2).run(suite)

So you can implement user journey which reads questions from the list of files and for each it'll submit the form using your session cookie.

For simple solution, probably curl command would work as well. See: What is the cURL command-line syntax to do a POST request? at SO

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.