Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have been using Scrapy for a long time now and I must say I am in love with it. Recently, I got to know about Scrapy Web Service. But I am unable to figure out how it works. Or how can I use it to monitor my current spiders.
Looking for a documentation or getting started guide.
So, that document you've linked is the closest thing to a guide there is. It doesn't do much hand-holding but should be enough to get you going -- it even comes with an example client script.
In short, the web service is enabled by default, and it answers to HTTP requests using the JSON RPC protocol for remote calls.
You can try it out after starting scrapy shell inside a Scrapy project, point your browser to: http://localhost:6080. You should see a page showing the available resources:
{"resources": ["enginestatus", "stats", "crawler"]}
From this point onwards, you will advance knowing a bit more of JSON RPC Version 2, to construct the proper calls -- here is an example using requests:
>>> import requests, json
>>> jsonrpc_call = {'jsonrpc': '2.0', 'method': 'list', 'params': [], 'id': 1}
>>> resource = 'http://localhost:6080/crawler/spiders'
>>> requests.post(resource, data=json.dumps(jsonrpc_call)).json()
{u'id': 1, u'jsonrpc': u'2.0', u'result': [u'spider1', u'spider2']}
IMPORTANT: You should know that this JSON RPC service has been extracted out from Scrapy for the next release, and now lives as a separate project: https://github.com/scrapy/scrapy-jsonrpc. So, be prepared when upgrading to Scrapy 1.0. ;)
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I am running a Django app on PythonAnywhere. Unfortunately, Celery is not supported (on PythonAnywhere). I would like to use another library like Celery that allows me to execute some process asynchronously (and, icing on the cake, which would also support task scheduling).
Have someone found a solution that is supported by PythonAnywhere?
Could you recommend a user-friendly library just for executing some processes asynchronously?
If you're using Django the easiest way is to setup an endpoint and calling it periodically using a webhook.
There are a lot of websites that let you set a web process that makes an HTTP call to your endpoint. Just to mention one: https://www.easycron.com.
Have in mind that this might not be the most secure and safe way (allways use HTTPS and define an authentication method to avoid unwanted executions from unwanted calls to your endpoint), but to use it depends on the need of having that feature and the effort of building it.
In Django, the job to be done will be defined in views.py.
Another choice, if you can run more than one process in PythonAnywhere, is to build another python script running apscheduler.
Check this example code.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
What are good tools for writing rest api technical especification and documentation? I need to specify urls, routes, endpoints.
Another approach would be to automatically generate an API documentation reverse engineering its code. It's a C# webservice.
I see three main languages to do that. You can then generate documentations from this using additional tools around these languages.
Swagger is a very popular and active language for Web API based on the JSON format.
RAML is based on the YAML format.
API Blueprint is based on Markdown. This makes it very easy to read.
Another tool called Slate is documentation-oriented. It allows to generate beautiful documentation with sample calls in different programming languages.
You can notice that the tool Restlet Studio allows you to define the structure of your RESTful service online and get then corresponding Swagger or RAML structure. You can even generate documentations (or client kits, server skeletons) based on these formats.
Hope it answers your question!
Thierry
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
My company was running an internal Exchange server. We had an internal windows service that would poll a particular mailbox to read some data and store attachments from those email messages as part of a back end process.
Last week we moved our mail service to Office365 in the cloud, and the aforementioned service has now started failing.
The current code is wired to use the old Exchange.asmx services (https://msdn.microsoft.com/en-us/library/53553207-ff98-4fdb-8716-4ae02fee83bf(v=exchg.140)), so essentially it's talking to https://mail.mycompany.com/ews/exchange.asmx
With Office365, I see that there are now RESTful API's and the like - https://msdn.microsoft.com/office/office365/HowTo/office-365-unified-api-overview Are there any "legacy" API's available? I know RESTful is the way to go, but rather than re-engineer this thing, I'm hoping I can find the .asmx equivalent today to get this up and running, since the current code uses the Microsoft.Exchange.WebServices namespace.
Thanks
Yes EWS will work fine in Exchange Online see https://msdn.microsoft.com/en-us/library/office/jj162981.aspx you can just use the endpoint https://outlook.office365.com/ews/exchange.asmx or use Autodiscover (which will return that endpoint anyway).
Cheers
Glen
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Is there a API for Google Keep? I want to make a windows 8 app for Google Keep, so that it synchronizes with your phone.
I looked into the Drive SDK because Google Keep is a extension of Google Drive, but I couldn't find it.
UPDATE: yes, Google released a public REST API for Keep. Here's the public documentation.
No there's not and developers still don't know why google doesn't pay attention to this request!
As you can see in this link it's one of the most popular issues with many stars in google code but still no response from google! You can also add stars to this issue, maybe google hears that!
I have been waiting to see if Google would open a Keep API. When I discovered Google Tasks, and saw that it had an Android app, web app, and API, I converted over to Tasks. This may not directly answer your question, but it is my solution to the Keep API problem.
Tasks doesn't have a reminder alarm exactly like Keep. I can live without that if I also connect with the Calendar API.
https://developers.google.com/google-apps/tasks/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm evaluating BPEL engines for an upcoming project and at the moment I have Oracle BPEL process manager and WSO2 BPS on my list.
Requirement :
The need is to create a simple BPEL process (exposed as a asynchronous web service), that can invoke an external web service and wait for an asynchronous callback. I need to be able to use an XSD files which has the data types for the input and output of the web service (BPEL process).
So far : I have managed to download and setup your eclipse plugin and server executable to test this scenario.
The question : Is there a tutorial, sample or documentation as to how to do this using WSO2 BPEL eclipse plugin.
Any help would be very much appreciated :)
Cheers!
Buddika
You can download the WSO2 Developer Studio from here which has the eclipse BPEL plugin.
You can find a recent blog post by Kalpa here
But this sample does not contain asynchronous invocations or correlations. But hope this is a good start for you.
You can find the WS-BPEL specification sample by Azeez here. It does has asynchronous invocations and correlations, but it does not have step by step guide. But if you are familiar enough with the BPEL editor, you can try this sample by your own.
You can also find this webinar here, which demonstrates implementing a simple BPEL preocess.
HTH