I'm trying to search for text string, say "can be", in document which is located on 'https://developer.apple.com/library/ios/documentation/ides/conceptual/AppDistributionGuide/AppDistributionGuide.pdf'
For this purpose I'm using PDFQuery. Initially I downloaded the pdf on my machine and did my code. It is working perfect. But when I tried to input the server url in file location it is showing me error. I know the PDFQuery library is developed to work on local machines.
Is there any way that I can figure out something and fix my problem. This is part of my course project and the pdf search module that I am supposed to develop is to be deployed on IBM Bluemix and run it from there. Only this part is pending in my project. Any help is appreciated.
Thank you in advance.
Break the problem into two bits.
i) download the file.
ii) process the file.
Here's some help with step i)
How do I download a file over HTTP using Python?
Related
I have been searching for hours trying to find out how I could edit an Excel file saved to OneDrive using python and have had no luck. Help if you know how/if it is possible.
#JeremiahTrest Welcome to Stackoverflow. I don't think that's how OneDrive works. What I mean is, I don't think it's possible to directly edit a file that is saved to your OneDrive in the cloud with any language. What you would have to do is to get a copy of the file on the machine that is running the Python script, update the file on that machine and save it with the changes, then push the changed file to your OneDrive. I looked and found this SDK for Python that is meant to be able to help you interface with the OneDrive API. So, you would use this SDK to get the file from OneDrive, update the file locally, then use the SDK to push the changed file back out to OneDrive.
I came across this post as I have the same task. Here's what I'm going to try:
Use the request library on python to call the OneDrive API.
Here's the page on excel APIs:
enter link description here
I'll update when I have my code.
I make this topic as we have a problem uploading a python archive in Azure. We did a modular code with python, which is a text generator. The code is working on python environment, besides we wanted to upload it to the cloud. When we tried it, we used the App service of Microsoft azure, we didn’t have any trouble while we were doing the process this way. Nevertheless, at the end, the program gave us a json, when we tried to put that URL into the navigator… There’s were the problem is, the generated Jason doesn’t connect with the navigator. We don’t have any clue of what’s happening, because the console doesn´t give any warning or error.
If any of you knows or have a tip for us to solve this problem, I would appreciate it,
Thanks for your attention and have a nice day.
Welcome to Stack Overflow! From what I understand, I suppose you should be going with Azure Automation Runbooks instead of Azure App Service, if you intend to execute or automate a task-like job. You can also test your runbook and implement error handling streams to ensure it works as expected. Please refer to this example for a detailed walkthrough.
Please elaborate your requirement if this is not what you were looking for, and we can explore other alternatives.
I am trying to run the python program from a git repository but I am not understanding where the results are displayed or suppose to be as I want to be able to put the results into a list for a database.
the repository: LINK to Repository
when i run the python program i get this but do not see a .txt file or anywhere that shows the reults
I am fairly new to programming so thanks for any help!
There is hint Running on http://127.0.0.1:5000. The program is a web server. Point your browser to the address. To stop the server type Ctrl+C in the console.
I'm now using gdata-python-client(Google document List API) to access my google drive on Terminal in Linux OS and I have problem to show the image files -- It's just show only the .doc .xls or .pdf files
Is it has some solutions to solve my problem in still using gdata-python-client? I hope there is some solutions better than changing my APIs to Google drive API,that's mean I should restart my project!!. So sad :(
And If I change to use Google Drive APIs.how to do it? or can i reuse my project working compatibility with the new APIs?
Please give me some advice or tutorial.
Thank you very very very much :)
Use the Drive API. We have a Python command line sample to get you started, and python snippets for every API method including files.list.
My webserver symbolic linked another server. But a uploaded file was 0 byte when I uploaded file. It was work well before (I used just web server directory)
I don't have any idea dealing with this problem. Does anybody have a trouble like this problem on NFS?
In addition, It works well if I use on Python console.
Thanks,
I found a problem. It was django problem with NFS.
If you have same trouble, check this URLs.
http://www.mail-archive.com/django-users#googlegroups.com/msg55892.html
https://code.djangoproject.com/ticket/9400