Web Development
int64
0
1
Data Science and Machine Learning
int64
0
1
Question
stringlengths
28
6.1k
is_accepted
bool
2 classes
Q_Id
int64
337
51.9M
Score
float64
-1
1.2
Other
int64
0
1
Database and SQL
int64
0
1
Users Score
int64
-8
412
Answer
stringlengths
14
7k
Python Basics and Environment
int64
0
1
ViewCount
int64
13
1.34M
System Administration and DevOps
int64
0
1
Q_Score
int64
0
1.53k
CreationDate
stringlengths
23
23
Tags
stringlengths
6
90
Title
stringlengths
15
149
Networking and APIs
int64
1
1
Available Count
int64
1
12
AnswerCount
int64
1
28
A_Id
int64
635
72.5M
GUI and Desktop Applications
int64
0
1
1
0
We have two servers (client-facing, and back-end database) between which we would like to transfer PDFs. Here's the data flow: User requests PDF from website. Site sends request to client-server. Client server requests PDF from back-end server (different IP). Back-end server sends PDF to client server. Client server ...
true
41,154,360
1.2
0
0
1
As you said you have no code, that's fine, but I can only give a few suggestions. I'm not sure how you're sending your files, but I'm assuming that you're using pythons open function. Make sure you are reading the file as bytes (e.g. open('<pdf-file>','rb')) Cut the file up into chunks and send it as one file, this wa...
0
1,341
0
0
2016-12-15T00:10:00.000
python,api,pdf
Transfer PDF files between servers in python
1
2
2
41,154,455
0
0
0
With Selenium Webdriver, I have to upload some files on a website but since the pop-up window for browsing the file location is handled by the operating system and not the browser, I cannot automate that part with Selenium. So I want to know which framework or module I need to use to work with system windows of Windows...
false
41,158,067
0
0
0
0
You can call autoit3 framework from Python even to open the File Open dialog and fill in the values and press OK or do whatever with the windows. Autoit3 has a dll that can be loaded and called using ctypes. That's what I did in one or 2 projects. If I understand your question correctly, wxpython or tk won't help you. ...
0
253
0
0
2016-12-15T06:50:00.000
python,selenium,tkinter,wxpython,selenium-chromedriver
How do I handle the system windows with Python on Windows OS?
1
1
2
41,159,150
0
1
0
I have been searching for a way to get my past ride invoice. Is there any api which i can use to get my rides info/invoice. as i don't want to click on every ride and then. Just want to automate the boring stuff.
true
41,163,658
1.2
0
0
1
"Does uber have an API which let user download invoice pdf?" - No, that API does not exist.
0
106
0
0
2016-12-15T11:59:00.000
python,uber-api
Does uber have an API which let user download invoice pdf?
1
1
1
41,212,414
0
0
0
Is there a way to get the direct download URL using youtube-dl? I tried it with youtube-dl -g https://www.youtube.com/watch?v=xxx It returns a URL that looks correct at the first sight, but it leads to a blank page that shows the video player. I want to extract the direct download URL like the example below. Link to pl...
true
41,171,238
1.2
0
0
2
I found an answer myself, I don't know why but to generate a download URL the only things to do is add the title at the end of the URL, so adding &title=Bruno+Mars+-+24K+Magic+%5BOfficial+Video%5D at the end of the first URL solved my problem.
0
3,296
0
1
2016-12-15T18:44:00.000
php,python,download,youtube,youtube-dl
youtube-dl get direct download url
1
1
1
41,175,121
0
1
0
I have a spider that I am using to crawl a site. I only need javascript for one piece of my item. So I scrape part of the site with scrapy then open the URL in selenium. While the URL is opening scrapy continues. How do I make scrapy to wait on my selenium logic to finish? Thanks in advance.
false
41,185,693
0
0
0
0
You can use DOWNLOAD_DELAY = 0.25 in settings.py,that the downloader should wait before downloading consecutive pages from the same website. Another way you can use time.sleep() for delaying spider to get response from selenium.
0
505
0
0
2016-12-16T13:38:00.000
python,selenium,scrapy,web-crawler
Scrapy and Selenium: Make scrapy wait for selenium?
1
1
1
46,603,023
0
0
0
So I am having a bit of a issue with the concepts behind Dataflow. Especially regarding the way the pipelines are supposed to be structured. I am trying to consume an external API that delivers an index XML file with links to separate XML files. Once I have the contents of all the XML files I need to split those up in...
true
41,212,272
1.2
0
0
4
Yes, this can absolutely be done. Right now, it's a little klutzy at the beginning, but upcoming work on a new primitive called SplittableDoFn should make this pattern much easier in the future. Start by using Create to make a dummy PCollection with a single element. Process that PCollection with a DoFn that download...
0
614
1
0
2016-12-18T19:55:00.000
python,etl,google-cloud-dataflow
Google Cloud Dataflow consume external source
1
1
1
41,229,251
0
0
0
I'm working on a project mainly for a bit of fun. I set up a twitter account and wrote a python script to write tweets. Initially i hard-coded the twitter credentials for my app into my script (tweet.py) Now i want to share the project so i have removed my app's credentials from tweet.py and added them to a config file...
false
41,219,491
0.099668
1
0
1
Yes, anyone can see the old files in version history in git-hub free version. If you want to make your project secure, you have to pay for private repository in github. If you dont wana pay, follow what @Stijin suggested.
0
36
0
0
2016-12-19T09:31:00.000
python,git,twitter
Git security - private information in previous commits
1
1
2
41,219,615
0
0
0
I am a noob to web and mqtt programming, I am working on a python application that uses mqtt (via hivemq or rabbitmq broker) and also needs to implement http rest api for clients. I realized using python bottle framework is pretty easy to provide a simple http server, however both bottle and mqtt have their event loop,...
true
41,254,715
1.2
0
0
1
I'm not familiar with bottle but a quick look at the docs it doesn't look like there is any other way to start it's event loop apart from with the run() function. Paho provides a loop_start() which will kick off it's own background thread to run the MQTT network event loop. Given there looks to be no way to run the bot...
1
544
0
1
2016-12-21T03:40:00.000
python,rabbitmq,mqtt,bottle,hivemq
Using http and mqtt together in a single threaded python app
1
1
1
41,259,154
0
0
0
Telegram BOT API has functions to send audio files and documents ,But can it play from an online sound streaming URL?
false
41,285,298
0
1
0
0
It will just show preview of link and if it's an audio, an audio bar will be shown. so the answer is yes, but it will not start automatically and user should download and play it.
0
3,630
0
3
2016-12-22T14:23:00.000
telegram,telegram-bot,python-telegram-bot,php-telegram-bot
Can the Telegram bot API play sound from an online audio streaming URL?
1
2
4
41,792,018
0
0
0
Telegram BOT API has functions to send audio files and documents ,But can it play from an online sound streaming URL?
false
41,285,298
0
1
0
0
No, you can't with Telegram Bot APIs. You must download the file and upload it on Telegram servers.
0
3,630
0
3
2016-12-22T14:23:00.000
telegram,telegram-bot,python-telegram-bot,php-telegram-bot
Can the Telegram bot API play sound from an online audio streaming URL?
1
2
4
41,324,053
0
0
0
When I'm opening google.com and doing a search in Chrome Selenium WebDriver, it redirects me to my local google domain, although the search string I'm using is "google.com ....." How can I remain on the "com" domain?
false
41,296,179
0.379949
0
0
2
Use this url - https://www.google.com/ncr. This will not redirect to your location specific site.
0
202
0
0
2016-12-23T06:21:00.000
python,google-chrome,selenium,google-search,browser-automation
How can I avoid being redirected to a local google domain in Selenium Chrome?
1
1
1
41,296,329
0
0
0
I know this question has been asked before but I've tried pretty much every solution listed on every question I can find, all to no avail. Pip install lxml doesn't work, nor does easy_install lxml. I have downloaded and tried a handful of different versions of lxml: lxml-3.6.4-cp27-cp27m-win32 (WHL file) lxml-3.7.0-cp...
false
41,304,621
0.197375
0
0
1
Install missing dependency sudo apt-get install zlib1g-dev
0
1,539
0
0
2016-12-23T16:12:00.000
python,pip,lxml
Can't install lxml module
1
1
1
45,203,932
0
0
0
Everytime I use pip command the command failed with error: "ImportError: No module named 'urllib3'". I do got urllib3 installed, and when I'm trying to install urllib3 again I got the same error. What can I do? I'm using windows 10. I cant run "pip install virtualenv", I got the same error with any pip command.
false
41,305,432
0.099668
0
0
2
May be worth double checking your PYTHONPATH Environment Variable in: Control Panel\System and Security\System -> Advanced System Settings -> Environment Variables. I had a rogue copy of Python that caused this exact error
1
6,193
0
0
2016-12-23T17:16:00.000
windows,python-2.7,python-3.x,pip,urllib3
ImportError: No module named 'urllib3'
1
2
4
42,188,924
0
0
0
Everytime I use pip command the command failed with error: "ImportError: No module named 'urllib3'". I do got urllib3 installed, and when I'm trying to install urllib3 again I got the same error. What can I do? I'm using windows 10. I cant run "pip install virtualenv", I got the same error with any pip command.
false
41,305,432
0
0
0
0
For escaping this error try to install virtualenv through "pip install virtualenv" and create the virtual environment directory using "python3 -m venv myvenv" which will create a myvenv named folder now activate the myvenv folder using "source \myvenv\bin\activate" now you have your virtual environment setup now you ca...
1
6,193
0
0
2016-12-23T17:16:00.000
windows,python-2.7,python-3.x,pip,urllib3
ImportError: No module named 'urllib3'
1
2
4
41,306,324
0
0
0
I am currently working on a test application involving a server and several client. The communication is achieved through the use of the TCP/IP protocol. The server has several slots available. When a client connects, this one is affected to a slot. Is there a reliable way to identify if a disconnected client has recon...
false
41,310,818
0
0
0
0
Working with MAC addresses should do it, login/pass, or pass-phrases. – Papipone
0
55
0
0
2016-12-24T06:10:00.000
python-3.x,sockets
Python3 knwowing if a disconnected client has reconnected
1
1
1
54,252,278
0
0
0
I'm using eclipse program to run selenium python, but there is an issue that when I run over 1000 TCs in one times, only 1000 first TC have test result. If I separate these TCs to many parts with each part is less than 1000 TC, the test result is received completely. I think the issue is not from coding, how can I fix ...
false
41,357,580
0
1
0
0
which unit test framework you are using, and why you are running from eclipse, i mean it's good for testing but eventually you will have to integrate that with Jenkins or other software so can you try running from command line and see what's happening. by the way, what error you are getting?
0
40
0
0
2016-12-28T07:43:00.000
python,eclipse,selenium,automated-tests
Cannot get test result if running over 1000 Test cases in selenium python
1
1
1
41,359,710
0
1
0
I want to send bulk SMS on WhatsApp without creating broadcast list. For that reason, I found pywhatsapp package in python but it requires WhatsApp client registration through yowsup-cli. So I've run yowsup-cli registration -r sms -C 00 -p 000000000000 which resulted in the error below: INFO:yowsup.common.http.wareque...
false
41,364,998
0
1
0
0
The error you get clearly points out the nature of the challenge you are facing: it has to do with your version of yowsup-cli; it's an old version. It means that your project requires a version of yowsup-cli higher than what you currently have so as to work effectively as require. What you need to do so as to resolve i...
0
1,399
0
0
2016-12-28T15:25:00.000
python,whatsapp
How to send bulk sms on whatsapp
1
2
2
41,365,717
0
1
0
I want to send bulk SMS on WhatsApp without creating broadcast list. For that reason, I found pywhatsapp package in python but it requires WhatsApp client registration through yowsup-cli. So I've run yowsup-cli registration -r sms -C 00 -p 000000000000 which resulted in the error below: INFO:yowsup.common.http.wareque...
false
41,364,998
0
1
0
0
The problem is with the http headers that are sent to whatsapp servers, these are found in env/env.py The name of headers are manually provided, therefore due to new updates whatsapp servers only serve or authenticate to updated devices which is identified with their http/https/etc headers, in this case you need to upd...
0
1,399
0
0
2016-12-28T15:25:00.000
python,whatsapp
How to send bulk sms on whatsapp
1
2
2
41,424,293
0
0
0
I was wondering, I'm interested in using the Python Yahoo Finance API on my website, I'm using iPage as my webhost, how can I install APIs there, I just today found out how can I code the website using python
false
41,365,358
0
1
0
0
You will need to copy the scripts to your /cgi-bin/ directory. You can find further reference in your iPage Control Panel, under "Additional Resources/CGI and Scripted Language Support". Then look for "Server Side Includes and CGI", and you will find the supported Python version and other relevant directory paths for...
0
604
0
1
2016-12-28T15:47:00.000
python,api
Using Python APIs on ipage?
1
1
1
41,819,998
0
0
0
What I want to achieve is : tasks = [call(url) for url in urls] call is an async method / coroutine in Python3.5 to perform GET requests , let's say aiohttp. So basically all calls to call are async. Now I can run asyncio.wait(tasks) and later access the result in futures one by one. BUT, what I want is, lets assume th...
true
41,485,507
1.2
0
0
1
var1, var2 = loop.run_until_complete(asyncio.gather(task1, task2)) According to the docs, gather retains the order of the sequence it was passed
1
73
0
2
2017-01-05T12:46:00.000
python,python-3.x,asynchronous,concurrency,python-asyncio
Set result of 2 or more Async HTTP calls into named variables
1
1
1
41,502,152
0
1
0
Im running python code solution (automation) in linux As part of the test im calling different api (rest) and connecting to my sql db. I'm running the solution 24/7 The soultion does Call api with wget Every 1 min samples the db with query for 60 min max Call api again with wget Every 1 min samples dc for 10 mins max...
false
41,500,455
0
0
0
0
This is tricky not knowing with which options you are calling wget and no log output, but since it seems to be a dns issue I would explicitly pass the --dns-servers=your.most.reliable.server to wget. If it persists I would also pass --append-output=logfile and examine logfile for further clues.
0
5,012
1
1
2017-01-06T06:49:00.000
python,linux,api,wget
Temporary failure in name resolution -wget in linux
1
2
2
41,500,665
0
1
0
Im running python code solution (automation) in linux As part of the test im calling different api (rest) and connecting to my sql db. I'm running the solution 24/7 The soultion does Call api with wget Every 1 min samples the db with query for 60 min max Call api again with wget Every 1 min samples dc for 10 mins max...
false
41,500,455
0
0
0
0
You can ignore the fail: wget http:/host/download 2>/dev/null
0
5,012
1
1
2017-01-06T06:49:00.000
python,linux,api,wget
Temporary failure in name resolution -wget in linux
1
2
2
62,781,058
0
1
0
I would like to offload some code to AWS Lambda that grabs a part of a screenshot of a URL and stores that in S3. It uses chromium-browser which in turn needs to run in xvfb on Ubuntu. I believe I can just download the Linux 64-bit version of chromium-browser and zip that up with my app. I'm not sure if I can do tha...
false
41,509,856
0.099668
0
0
1
No, this breaks the lambda paradigm of having a fully built container ready to go. Also, anything you'd do with xvfb is probably going to be slow. As a general rule lambdas should execute in under a second, otherwise you should just have a server. I would recommend creating a docker container and making an auto-scalin...
0
2,074
0
2
2017-01-06T16:25:00.000
python,amazon-web-services,aws-lambda
Can I use xvfb with AWS Lambda?
1
1
2
41,510,034
0
0
0
My goal is to have remote control of a device on a WLAN. This device has software that enables me to configure this wireless network (IP, mask, gateway, dns). I can successfully connect this device, and my computer to a common network. Since both machines share the same network, I made the assumption that I would be...
false
41,516,828
0.197375
0
0
1
Yes you can. So you get a timeout when you try to connect to a wireless device. There are several steps you can take in order to troubleshoot this. Make sure your device has a program running that is listening to the port you want to connect to. Identify if the device can answer ICMP packets in general and can be pinge...
0
2,085
0
0
2017-01-07T01:20:00.000
python,sockets,wireless,ethernet
can I use python's 'socket' module to connect to a wireless ethernet host?
1
1
1
41,569,946
0
0
0
Ok, so I've looked around on how to do this and haven't really found an answer that showed me examples that I could work from. What I'm trying to do is have a script that can do things like: -Log into website -Fill out forms or boxes etc. Something simple that might help me in that I though of would be for example if...
true
41,528,141
1.2
1
0
1
So after some good answers and further research, I have found that selenium is the thing that best suits my needs. It works not only with python, but supports other languages as well. If anyone else is looking for something that I had been when I asked the my question, a quick Google search for "selenium" should giv...
0
58
0
0
2017-01-08T00:26:00.000
python,html,python-3.x,web
How to have python interact automatically with a web site
1
1
1
44,302,397
0
0
0
When trying to use the BMCS Python SDK, I get an SSL/TLS exception. Why? Exception: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>
true
41,528,570
1.2
0
0
0
Bare Metal Cloud Services requires TLS 1.2 connections. Your version of OpenSSL is probably too old and does not support TLS 1.2. Please upgrade your version of OpenSSL and try again.
0
177
0
0
2017-01-08T01:40:00.000
oracle-cloud-infrastructure,oci-python-sdk
Bare Metal Cloud - Python SDK SSL/TLS exception
1
1
1
41,528,571
0
0
0
I'm visiting an unknown and possibly malicious website. Lots of them. Python's requests do not run javascript. Can I get infected? Should I consider using a virtual machine?
true
41,533,444
1.2
0
0
2
No, merely downloading HTTP data won't install a virus. A virus needs to be activated too, and requests doesn't do anything with the downloaded data for that to happen. Normally, a virus uses bugs in the browser (or more commonly, a plugin in the browser) to trigger code execution, or by tricking the user into executin...
1
1,043
0
4
2017-01-08T13:55:00.000
python,security,python-requests,virus
Can I get a virus by visiting an unknown website using python's requests package?
1
1
1
41,533,461
0
0
0
I have an interesting problem where we need to document all the URLs that our massive Python project calls. It's not feasible to manually go through the code because it's too large and changes often. Ideally, what I'd like is a piece of script that given a Python project folder can go through all the files in it and fi...
false
41,545,979
0.379949
0
0
2
I think what you could do instead is to wrap requests or urllib modules with a wrapper that logs URLs your app is connecting and then just call real urllib or requests modules functions. So whenever you call import requests you actually import your wrapper.
0
42
0
0
2017-01-09T10:32:00.000
python,web-scraping
List all urls called by requests/urllib in python project
1
1
1
41,546,162
0
0
0
I install chromedriver through my package.json file and it gets installed in my npm_modules folder. Then I add it to the PATH of executables, when running through terminal tests are passing. When running the same command in pycharm, says that it cannot find the executable: WebDriverException: Message: 'chromedriver' ex...
false
41,559,294
0.049958
0
0
1
You can specific custom PATH variable for chromedriver to PyCharm debug configuration environment variables.
1
8,419
0
1
2017-01-10T00:25:00.000
python,selenium,pycharm,selenium-chromedriver
Pycharm not finding executable for chromedriver for selenium
1
1
4
56,002,173
0
1
0
I look after many links to find how can I define my proprietary header in webpy. Can you help me, please. I need to define my own http header like ("X-UploadedFile") and then use it with web.input()
false
41,566,222
0.197375
0
0
1
Headers aren't part of web.input(), they're part of the "environment". You can add headers, to be sent to your client using web.header('My-Header', 'header-value'). You can read headers sent by your client using: web.ctx.env.get('MY_HEADER') (Note all-caps, and use of underline rather than dash).
0
253
0
1
2017-01-10T10:08:00.000
python,web.py
Define own header in webpy
1
1
1
41,726,066
0
0
0
I have been working on developing a Rally API using python with the help of links pointed by Rally help (Pyral). My code connects well with the Rally server and pulls specific user story I want, but not the columns I am interested in. I am aiming to pull [full] specific reports with fields such as project, tags, etc. u...
false
41,573,669
0.197375
0
0
1
Most of the reports on the Reports tab are rendered by a separate Analytics 1 service outside of the standard WSAPI you've been communicating with. Some of that data is available in WSAPI -IterationCumulativeFlowData, ReleaseCumulativeFlowData. What data specifically are you looking for?
0
346
0
2
2017-01-10T16:31:00.000
python-2.7,rally,code-rally,pyral
How to connect Rally API (python) to the specific reports under 'Report' section
1
1
1
41,579,286
0
1
0
I have recorded some Selenium Scripts using the Selenium IDE Firefox add-on. I'd like to add these to the unit test cases for my Django project. Is it possible to somehow turn these into a Python unit test case?
true
41,603,576
1.2
1
0
1
If you are recording scripts in Python formatting, those are already converted to unit test cases. Save each scripts and run them in batch mode.
0
81
0
0
2017-01-12T01:15:00.000
python,unit-testing,selenium,selenium-webdriver,selenium-ide
Using Selenium Scripts in a Python unit test
1
1
1
41,607,809
0
0
0
EDIT Removed BOTO from question title as it's not needed. Is there a way to find the security groups of an EC2 instance using Python and possible Boto? I can only find docs about creating or removing security groups, but I want to trace which security groups have been added to my current EC2 instance.
false
41,620,292
0.099668
1
0
1
You can check it from that instance and execute below command curl http://169.254.169.254/latest/meta-data/security-groups or from aws-cli also aws ec2 describe-security-groups
0
842
0
1
2017-01-12T18:21:00.000
python,amazon-web-services,amazon-ec2
How do I list Security Groups of current Instance in AWS EC2?
1
1
2
41,620,629
0
0
0
I read the following on python-requests website: Note that connections are only released back to the pool for reuse once all body data has been read; be sure to either set stream to False or read the content property of the Response object. But as I use the object returned by req.json() and doesn't use req thereafte...
true
41,634,436
1.2
0
0
0
You could answer your question quite simpply by reading the source code. But anyway: response.json() does read the response's content, obviously - it's just a convenient shortcut for json.loads(response.content).
0
59
0
0
2017-01-13T12:14:00.000
python,json,python-requests
In requests-python, when is connection released when using req_json = req.json()?
1
1
1
41,634,715
0
0
0
I have a small Cassandra cluster hosted on AWS that I want to connect to using the python drivers. Unfortunately I get "Keyspace does not exist" when trying to connect to it from one specific pc. The strange thing is that keyspace exists and I can connect to itfrom other pcs. And I can find that keyspace on that server...
false
41,642,612
0.197375
0
0
2
Check if the query from your python driver is using upper case letters for the keyspace name - change it to lower case
0
2,129
0
1
2017-01-13T20:03:00.000
python,amazon-web-services,cassandra
Cassandra cluster returns incorrect error "Keyspace does not exist" when connecting from one specific pc
1
1
2
43,731,632
0
0
0
I wrote a python script to download some files from an s3 bucket. The script works just fine on one machine, but breaks on another. Here is the exception I get: botocore.exceptions.ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden. I am pretty sure it's related to some system config...
false
41,646,514
1
0
1
8
The issue was actually being caused by the system time being incorrect. I fixed the system time and the problem is fixed.
0
8,191
0
6
2017-01-14T03:29:00.000
python,windows,amazon-web-services,amazon-s3,boto3
Trying to access a s3 bucket using boto3, but getting 403
1
1
2
41,682,857
0
0
0
I am using the telepot python library, I know that you can send a message when you have someone's UserID(Which is a number). I wanna know if it is possible to send a message to someone without having their UserID but only with their username(The one which starts with '@'), Also if there is a way to convert a username t...
false
41,664,810
1
1
0
73
Post one message from User to the Bot. Open https://api.telegram.org/bot<Bot_token>/getUpdates page. Find this message and navigate to the result->message->chat->id key. Use this ID as the [chat_id] parameter to send personal messages to the User.
0
131,355
0
39
2017-01-15T18:38:00.000
visual-studio-code,python,telegram,telegram-bot,python-telegram-bot
How can I send a message to someone with my telegram bot using their Username
1
2
5
50,736,131
0
0
0
I am using the telepot python library, I know that you can send a message when you have someone's UserID(Which is a number). I wanna know if it is possible to send a message to someone without having their UserID but only with their username(The one which starts with '@'), Also if there is a way to convert a username t...
false
41,664,810
1
1
0
14
It is only possible to send messages to users whom have already used /start on your bot. When they start your bot, you can find update.message.from.user_id straight from the message they sent /start with, and you can find update.message.from.username using the same method. In order to send a message to "@Username", you...
0
131,355
0
39
2017-01-15T18:38:00.000
visual-studio-code,python,telegram,telegram-bot,python-telegram-bot
How can I send a message to someone with my telegram bot using their Username
1
2
5
42,990,824
0
0
0
I have been breaking my head for the pass 2 weeks, and I still can't figure it out. I'm trying to build a Server-Client based streaming player on Python (Ironpython for the wpf GUI) that streams video files. My problem is when the client requests to seek on a part that he did not load yet. When I try to send him just t...
true
41,666,809
1.2
0
0
2
Before playing an MP4 file the client (e.g. browser) needs to read the header part of the file. An MP4 is broken into 'Atoms' and the Moov atom is the header or index atom for the file. For MP4 files that will be streamed, a common optimisation is to move this Moov atom to the front of the file. This allows the client ...
0
1,969
0
1
2017-01-15T22:01:00.000
python,video,video-streaming,httprequest,buffering
How does HTTP 206 Partial Content Request works
1
1
1
41,672,032
0
0
0
I'm using python to develop SDN I also wrote a virtual network function just like DHCP,NAT,Firewall,QoS But I want to get computer's hostname from IP like 192.168.2.XXX I try to use arp but it only can find IP and MAC address in packets. So how should I get hostname from specific IP? Should I try this in DHCP or NAT? T...
false
41,671,972
0
0
0
0
Try socket.gethostbyaddr() from the module socket
0
1,035
0
1
2017-01-16T08:15:00.000
python,hostname,nat,dhcp,sdn
How to get hostname from IP?
1
1
1
41,672,160
0
0
0
I have a graph created in zabbix. I want to update this graph to include items from other hosts. For that I am calling graph.update() zabbix API using a python script. The method is updating the graph item instead of adding/appending to the existing graph item list. Does any one has idea about this ? graph.update(graph...
false
41,694,723
0
0
0
0
Get the existing graph items with graph.get first, then update the graph and pass all the existing items (include gitemid for these items) with your new items added.
0
601
0
1
2017-01-17T10:30:00.000
python,api,graph,zabbix
add graph items to existing graph in zabbix using API's
1
1
1
41,695,124
0
1
0
I am trying to give rest call to java API using python. Java API needs JSON input with java literals like {a:null,b:true,c:false}, While parsing the JSON from python it is not allowing to do so because python needs null,true and false to be inside double quotes like "null","true","false". what is the solution?
false
41,756,756
0
0
0
0
while passing json to java api from python replace null with None ,true with True and false with False. It will work
1
52
0
0
2017-01-20T05:33:00.000
java,python,json
How to pass java literals from python dictionary
1
2
2
41,764,528
0
1
0
I am trying to give rest call to java API using python. Java API needs JSON input with java literals like {a:null,b:true,c:false}, While parsing the JSON from python it is not allowing to do so because python needs null,true and false to be inside double quotes like "null","true","false". what is the solution?
false
41,756,756
0
0
0
0
The JSON syntax expects values to be quoted. It means that the problem comes from the java JSON api. What API do you use ?
1
52
0
0
2017-01-20T05:33:00.000
java,python,json
How to pass java literals from python dictionary
1
2
2
41,756,812
0
0
0
I've been trying to use the python websocket-client module to receive and store continuous updates from an exchange. Generally, the script will run smoothly for a day or so before raising the following error: websocket._exceptions.WebSocketConnectionClosedException: Connection is already closed. I've looked at the webs...
false
41,785,893
0.197375
0
0
1
Most likely, the remote host closed the connection. You cannot stop it. You can handle it by re-connecting. People running web servers will implement automatic cleanup to get rid of potentially stale connections. Closing a connection that's been open for 24 hours sounds like a sensible approach. And there's no harm don...
0
7,326
0
13
2017-01-21T23:59:00.000
python,websocket
"Connection is already closed." error with python WebSocket client
1
1
1
56,409,252
0
0
0
Case: There is a large zip file in an S3 bucket which contains a large number of images. Is there a way without downloading the whole file to read the metadata or something to know how many files are inside the zip file? When the file is local, in python i can just open it as a zipfile() and then I call the namelist()...
false
41,789,176
-0.039979
0
0
-1
As of now, you cannot get such information without downloading the zip file. You can store the required information as the metadata for a zip file when uploading to s3. As you have mentioned in your question, using the python functions we are able to get the file list without extracting. You can use the same approach ...
0
3,417
0
7
2017-01-22T09:10:00.000
python,amazon-web-services,amazon-s3,boto
How to count files inside zip in AWS S3 without downloading it?
1
1
5
41,790,354
0
0
0
I have been having this error when trying to make web requests to various hosts. After debugging a bit I have found the solution is updating the requests[security] through pip.
true
41,832,838
1.2
0
0
20
Run sudo python3 -m pip install "requests[security]" or sudo python -m pip install "requests[security]" to fix this issue.
0
30,212
0
11
2017-01-24T16:06:00.000
python,python-3.x,pip,python-requests
Python Error 104, connection reset by peer
1
1
2
41,832,839
0
0
0
I have some employee data in which there are 3 different roles. Let's say CEO, Manager and Developer. CEO can access the whole graph, managers can only access data of some people (their team) and developers can not access employee data. How should I assign subgraph access to user roles and implement this using Python?...
true
41,850,411
1.2
0
1
1
At the moment it is not possible to write procedures for custom roles to implement subgraph access control using Python. It is only possible in Java. A workaround might be to indirektly implement it using phyton by adding properties to nodes and relationship storing the security levels for these nodes and relationships...
0
304
0
2
2017-01-25T11:25:00.000
python,neo4j,authorization,graph-databases,py2neo
Authorization (subgraph access control) in Neo4j with python driver
1
1
2
42,622,083
0
1
0
I'm using selenium on python 3.5 with chrome webdriver on a ububtu vps, and when I run a very basic script (navigate to site, enter login fields, click), memory usage goes up by ~400mb,and cpu usage goes up to 100%. Are there any things I can do to lower this, or if not, are there any alternatives? I'm testing out sele...
false
41,918,828
0.066568
0
0
1
Don't forget drive.close() in your code , if you don't close your driver, you will have a lot instance of Chrome.
0
7,993
0
3
2017-01-29T08:02:00.000
java,python-3.x,selenium,memory-management
Selenium using too much memory
1
1
3
44,546,508
0
1
0
I'm trying to know if this is possible at all. So far it doesn't look that great. Let's imagine I wanted to list all my current Google Authenticator passwords somewhere. That list would update once there's a new set. Is this possible at all? I remember back when Blizzard made their authenticator. You would basically ha...
false
41,941,537
0
0
0
0
So I dug a little deeper. This, however, requires I disable and remove the current 2FA from my account. Go disable/remove current 2FA Go enable it again, but remember to grab the secret (it's listed somewhere in the request or on the page) and save it somewhere Find any secret -> One time password "generator" Now I h...
0
75
0
0
2017-01-30T17:08:00.000
javascript,java,python,google-authenticator,authenticator
Google Authenticator passwords duplicated somewhere else?
1
1
1
41,942,437
0
0
0
Today, I tried to paste "ip[tab]port" in a interpreter, the result is "ipport". Example: Copy 111.222.3.44 80(using spaces, here, in lieu of tab) from another source, e.g. Notepad, and paste it into the interactive shell. Unfortunately, when I try this, the [tab] doesn't paste, and the result is:111.222.3.4480 I w...
false
41,942,799
0
0
0
0
This is a frustrating issue. The workaround I settled on was to paste into a text editor, then used sed to convert tabs into \t characters. Then copy and paste that into the python interactive shell. For example: Copy and paste 111.222.3.44[tab]80 into a text file that preserves the tabs, and save that file as temp. ...
1
603
0
4
2017-01-30T18:19:00.000
python,python-3.x,copy,paste
How to paste Tab character into Python interactive shell
1
1
2
70,075,958
0
0
0
Is there a way to automate checking Google Page Speed scores?
false
41,988,762
0
1
0
0
Anybody using this guide (as of April 2022) will need to update to the following: https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url={YOUR_SITE_URL}/&filter_third_party_resources=true&locale=en_US&screenshot=false&strategy=desktop&key={YOUR_API_KEY} The difference is the "/v2/" needs to be replaced with "/v...
0
2,435
0
1
2017-02-01T20:08:00.000
python,selenium,automated-tests
How to automate Google PageSpeed Insights tests using Python
1
1
2
71,752,003
0
0
0
Is there a Facebook API call to retrieve all or a subset of the current live videos with the relative metadata, such as location, user who is streaming, time at stream? The implementation could be in Python.
true
41,992,016
1.2
0
0
1
No, there is no such API at this time.
0
355
0
0
2017-02-01T23:51:00.000
python,facebook-live-api
How to access videos in Facebook livemap programmatically?
1
1
1
42,508,346
0
1
0
So I am currently writing a script that will allow me to wait on a website that has queue page before I can access contents Essentially queue page is where they let people in randomly. In order to increase my chance of getting in faster , I am writing multi thread script and have each thread wait in line. First thing...
false
42,003,456
0
0
0
0
You don't need to keep sending the session, as long as you keep the Python application running you should be good.
0
194
0
1
2017-02-02T13:27:00.000
python,python-2.7,session,request,phantomjs
Does Python requests session keep page active?
1
1
1
42,003,480
0
1
0
how do I upload an image (from the web) using Bigcommerce's Python API? I've got this so far: custom = api.Products.create(name='Test', type='physical', price=8.33, categories=[85], availability='available', weight=0) Thank you! I've tried almost everything!
false
42,003,461
-0.379949
0
0
-2
This will create the product on the BigCommerce website. You create the image after creating the product, by entering the following line. The image_file tag should be a fully qualified URL pointing to an image that is accessible to the BigCommerce website, being found either on another website or on your own webserver....
0
438
0
3
2017-02-02T13:27:00.000
python,e-commerce,bigcommerce
Bigcommerce Python API, how do I create a product with an image?
1
1
1
48,835,159
0
1
0
I made a simple scraper that accesses an album, and scrapes lyrics for each song from azlyrics.com. After about an hour of working, the website crashed, with an error: Chrome: www.azlyrics.com didn’t send any data. ERR_EMPTY_RESPONSE Tor, firefox, waterfox: The connection was reset The connection to the server was...
false
42,006,758
0.664037
0
0
4
Apparently your IP was banned by the website for suspicious activity. There are couple ways around that: talk to website owners. This is the most straightforward and nicest way change your IP, e.g. by connecting though a pool of public proxies or Tor. This is a little bit dirty and it is not so robust, e.g. you can be...
0
337
0
2
2017-02-02T15:57:00.000
python,web-scraping
Website error after scraping
1
1
1
42,006,894
0
0
0
I am trying to upload the file in python and i want to upload the file in resumable mode i.e when the internet connection resume , the file upload resume from the previous stage. Is there any specific protocol that supports resumable file upload. Thanks in advance
false
42,019,279
0
0
0
0
Excellent answer by GuySoft - it helped me a lot. I have had to slightly modify it as I never (so far) encountered the three exceptions his script is catching, but I experienced a lot of ConnectionResetError and socket.timeout errors on FTP uploads, so I added that. I also noticed that if I added a timeout of 60 secon...
0
2,044
0
3
2017-02-03T07:51:00.000
python,python-2.7,resume-upload
Resumable file upload in python
1
1
2
68,074,868
0
0
1
I am using a networkx weighted graph in order to model a transportation network. I am attempting to find the shortest path in terms of the sum of weighted edges. I have used Dijkstra path in order to find this path. My problem occurs when there is a tie in terms of weighted edges. When this occurs I would always like t...
false
42,029,159
0
0
0
0
Instead of using floating points for weights, use tuples (weight, number_of_edges) with pairwise addition. The lowest weight path using these new weights will have the lowest weight, and in the case of a tie, be the shortest path. To define these weights I would make them a subclass of tuple with __add__ redefined. T...
0
711
0
1
2017-02-03T16:51:00.000
python,algorithm,graph
Python: Shortest Weighted Path and Least Number of Edges
1
1
1
42,029,561
0
0
0
I want to make a file and upload that on a Synology NAS. I am using Python. It doesn't support FTP but it is just a network drive. I know the question is really short, I just don't know what more to tell.
true
42,033,430
1.2
0
0
1
The point of network drives is that they are used like local drives. So make it accessible to your operating system (mount on Unix/Linux/MacOS, share on Windows...) and copy the file to it. Alternatively, you can use a network protocol, such as webdav, sftp, whatever is enabled. python supports them all (sometimes with...
0
1,321
0
2
2017-02-03T21:40:00.000
python,python-3.x,upload,nas,synology
How to upload file on Synology NAS?
1
1
1
42,033,609
0
1
0
I'm getting started out creating a website where users can store and get (on user request) private information they store on the server. Since the information is private, I would also like to provide 256 bit encryption. So, how should I go about it? Should I code the back end server stuff in node.js or Python, since I'...
true
42,036,307
1.2
1
0
1
You don't need to create your own encrypted communication protocol. Just serve all traffic over https. If you also wish to encrypt the data before storing it on a database you can encrypt it on arrival to the server. Check out Express.js for the server, Passport.js for authentication and search for 256-bit encryption o...
0
30
0
1
2017-02-04T03:58:00.000
python,node.js,web-applications,server
Build a Server to Receive and Send User's Private Information
1
1
1
42,036,454
0
0
0
I have requirement where I need to store users ip, device information, user_agent, etc. information for on url on my site. How do I go about this? This data will be used later as stats (which device hitting more, which locations etc.) I can see that Google analytics helps in tracking for entire site. How do I enable ...
true
42,036,376
1.2
0
0
1
If you add your tracking code only on the one web page you wish to track, then you should be able to accomplish your goal. Just to clarify, if you have two web pages, trackme.html and donottrackme.html, you would place the Google Analytics tracking code only on trackme.html. IP, device information, user agent, etc. s...
0
227
0
0
2017-02-04T04:10:00.000
python-2.7,flask,google-analytics
Track users using Google analytics for one url on website
1
1
1
42,036,453
0
0
0
I am new to windows and this is the first time I am running a Python program on windows. I am running a crawler program that uses selenium and firefox webdriver. My program runs successfully on mac/ubuntu, but on windows webdriver.Firefox() open a new geckodriver window(cmd like window) and just hangs there nothing af...
false
42,037,554
0.197375
0
0
1
Your problem is most likely the compatibility between Firefox and your GeckoDriver. Try using the latest Firefox and geckodriver. If you have a problem with Firefox, try reinstalling it and disable automatic updating.
0
944
0
0
2017-02-04T07:03:00.000
python,selenium
Windows: Selenium webdriver.Firefox hangs
1
1
1
42,040,656
0
1
0
Is there any kid of "repl + extra features" (like showing docs, module autoreload etc.), like iPython, but for Nodejs? And I mean something that runs locally & offline. This is a must. And preferably to work both in terminal mode and have an optional nicer GUI on top (like iPython + iPythonQT/Jupyter-qtconsole). The st...
false
42,039,868
1
0
0
9
I've been looking for "ipython for node" for years and here's how I would answer your question: No.
1
7,289
0
31
2017-02-04T11:33:00.000
node.js,ipython,read-eval-print-loop,ijavascript
Is there a REPL like iPython for Nodejs?
1
1
4
57,401,854
0
0
0
I am trying to keep the chrome browser open after selenium finishes executing my test script. I want to re-use the same window for my second script to run.
false
42,044,315
-0.066568
0
0
-1
This should be as simple as not calling driver.quit() at the end of your test case. You should be left with the chrome window in an opened state.
0
9,560
0
3
2017-02-04T18:58:00.000
python,selenium,webdriver,selenium-chromedriver,ui-automation
How to keep chrome browser window open to be re-used after selenium script finishes on python
1
1
3
42,044,535
0
1
0
I am scraping data from peoplefinders.com a website which is not accesible from my home country so I am basically using a vpn client. I login to this website with a session post and through the same session I get items from different pages of the same website. The problem is that I do scraping in a for loop with get r...
false
42,079,848
0
0
0
0
HTTP 400 is returned, if the request is malformed. You should inspect the request being made, when you get the error. Perhaps, it is not properly encoded. VPN should not cause an HTTP 400.
0
397
0
1
2017-02-07T00:44:00.000
python,web-scraping,session-cookies,vpn
Does using a vpn interrupts python sessions requests which are using the same cookies over and over?
1
1
1
42,079,994
0
0
0
I would like to know how to create a communication for each services. I am using API Gateway for the outside of the system to communicate with the services within. Is it necessary for a service to call another service through API Gateway or just directly into the service itself ? Thank You
false
42,105,805
0
0
0
0
Api gateway is not needed for Internal service to service communication But, you need a service registry or some kind of dynamic load balancing mechanism to reach the services
1
3,274
0
0
2017-02-08T06:03:00.000
python,api,microservices
Microservices Communication Design
1
1
2
42,114,560
0
1
0
I am developing a web app which depends on data from one or more third party websites. The websites do not provide any kind of authentication API, and so I am using unofficial APIs to retrieve the data from the third party sites. I plan to ask users for their credentials to the third party websites. I understand this ...
true
42,169,854
1.2
0
0
2
There’s no such thing as a safe design when it comes to storing passwords/secrets. There’s only, how much security overhead trade-off you are willing to live with. Here is what I would consider the minimum that you should do: HTTPS-only (all passwords should be encrypted in transit) If possible keep passwords encryp...
0
1,085
0
3
2017-02-10T22:45:00.000
python,django,postgresql,security,encryption
How to safely store users' credentials to third party websites when no authentication API exists?
1
1
2
42,170,097
0
0
0
Is there any way to delete a message sent by anyone other than the bot itself, the documentation seems to indicate that it is possible Your own messages could be deleted without any proper permissions. However to delete other people’s messages, you need the proper permissions to do so. But I can't find a way to targe...
false
42,182,243
0
1
0
0
if you're trying to delete the last sent message, e.g if a user is calling a command and you want to remove their message and then send the command. Use this "await ctx.message.delete()" at the top of your command, it will find the last sent message and delete it.
0
87,622
0
10
2017-02-11T23:00:00.000
python,discord
Deleting User Messages in Discord.py
1
1
5
69,640,480
0
0
0
Can anyone tell difference between iPerf and iPerf3? while using it with client-server python script,what are the dependencies?And what are the alternatives to iPerf?
false
42,218,537
0
1
0
0
iperf vs iperf3 from wikipedia A rewrite of iperf from scratch, with the goal of a smaller, simpler code base and a library version of the functionality that can be used in other programs, called iperf3, was started in 2009. The first iperf3 release was made in January 2014. The website states: "iperf3 is not ...
0
2,323
0
0
2017-02-14T05:28:00.000
python-2.7
Iperf3 commands with python script
1
1
2
42,813,821
0
1
0
There is a <ul>tag in a webpage, and so many <li> tags in the <ul> tag. The <li> tags are loaded by ajax automatically while mouse wheel scroll down continuously. The loading of <li> tags will work well if I use mouse wheel. I want to use selenium to get the loaded info in <li> tags, but the javascript of: document.get...
false
42,239,544
0.099668
0
0
1
I'd look at the ajax load event listener (the code that loads more <li>s). You need to trigger whatever that listens for. (aka: does it watch for something entering the view port, or something's y-offset, or a MouseEvent, or a scroll()?) Then you need to trigger that kind of event on the element it listens to.
0
418
0
2
2017-02-15T02:11:00.000
python,selenium,selenium-chromedriver
How can python + selenium + chromedriver use mouse wheel?
1
2
2
42,261,282
0
1
0
There is a <ul>tag in a webpage, and so many <li> tags in the <ul> tag. The <li> tags are loaded by ajax automatically while mouse wheel scroll down continuously. The loading of <li> tags will work well if I use mouse wheel. I want to use selenium to get the loaded info in <li> tags, but the javascript of: document.get...
true
42,239,544
1.2
0
0
0
From now on, there is not any reasonable reason, so I close this question.
0
418
0
2
2017-02-15T02:11:00.000
python,selenium,selenium-chromedriver
How can python + selenium + chromedriver use mouse wheel?
1
2
2
42,455,875
0
0
0
i have started working on python chat, using sockets. I am now having a problem with connecting many clients to the server, because if they connect to the same port they won't be able to communicate live, because each client would wait in line until the port will be free. Now my idea was to choose (on the server side) ...
true
42,243,255
1.2
0
0
0
Never mind i figures it out. My mistake was that i opened new socket with every thread, while should have opened that once in main() func, then do the accept in the thread. Thank you all
0
65
0
0
2017-02-15T07:37:00.000
python,python-2.7,sockets
Trying to create Python chat
1
1
1
42,267,485
0
0
0
I have python code that sends data to socket (a rather large file). Should I divide it into 1kb chunks, or would just conn.sendall(file.read()) be acceptable?
true
42,258,274
1.2
0
0
4
It will make little difference to the sending operation. (I assume you are using a TCP socket for the purposes of this discussion.) When you attempt to send 1K, the kernel will take that 1K, copy it into kernel TCP buffers, and return success (and probably begin sending to the peer at the same time). At which point, y...
1
1,254
0
3
2017-02-15T19:20:00.000
python-3.x,sockets
Should I send data in chunks, or send it all at once?
1
1
1
42,260,182
0
0
0
I am looking to simulate a TCP server, where I would want to reject connection with different error codes in ICMP message. Currently, the issue is even before it reaches handle_accept() in sockets SYN,ACK would have already reached to the server, and I can reject the connection with ICMP errors! Did anybody ever tried ...
true
42,265,676
1.2
0
0
0
There is no way to do this on the level of the TCP socket interface available in Python since the OS kernel does the connection setup already before the applications returns from accept. You would need to handle this outside of the application with firewall rules or use raw sockets or a user space network stack where y...
0
125
0
0
2017-02-16T05:28:00.000
python,sockets,tcp
Reject TCP SYN with ICMP error messages in python
1
1
1
42,266,135
0
1
0
I need to scrape a url which has checkboxes in it. I wanna click some of the checkboxes and scrape and I wanna scrape again with someother checkboxes clicked. For instance; I wanna click new and then scrape and then I wanna scrape the same url with Used and Very Good clicked. Is there a way to do this without making mo...
true
42,291,191
1.2
0
0
0
You are wrong. Scrapy cannot manipulate real browser-like behavior. From the image you linked, I saw you are scraping Amazon, so open that link in browser, and click on checkbox, you will notice the URL in browser will also change according to new filter set. And then put that URL in scrapy code and do your scraping. I...
0
1,305
0
3
2017-02-17T06:49:00.000
python,xpath,web-scraping,scrapy,web-crawler
Scrapy - How to put a check into checkboxes in a url then scrape
1
1
2
42,297,186
0
0
0
I have created a service account for Google Drive API two months ago and was using it to upload files in weekly basics to a shared folder. From couple of days I am getting the below error while trying to upload files using this API "The user has exceeded their Drive storage quota" I tried to upload into another folder ...
false
42,300,271
0.197375
0
0
2
From your question it sounds like you are using a Service Account to proxy to a standard account. The first thing to do is to establish which account is out of quota, ie. is it the Service Account or is it the standard account? You can use the About.get method to see the used and available quota for each account. If it...
0
4,699
0
0
2017-02-17T14:23:00.000
python,google-drive-api
Google Drive API service Account "The user has exceeded their Drive storage quota" python
1
1
2
42,303,792
0
0
0
I am working on a chat-box. I am using IBM Watson Conversation to make a conversation bot. My query is: Suppose the user is talking to the bot in some specific node, and suddenly the user asks a random question, like "what is the weather?", my bot should be able to connect to few Internet websites, search the content a...
true
42,344,095
1.2
0
0
1
Search for a "request response". This is a way to redirect the conversation / dialog flow to your app, and then forward it back to watson. Hope it helps.
0
1,028
0
1
2017-02-20T12:03:00.000
python,ibm-cloud,ibm-watson,chatbot,watson-conversation
IBM Watson Conversation - Python: Make chat bot jump to some intent & get back to previous intent
1
1
1
42,350,581
0
0
0
I want to get the sum of weights (total cost/distance encountered) of a given path in a networkx multigraph. It's like the current shortest_path_length() function but I plan to use it on the paths returned by the all_simple_paths() function. Is there a way to do that? I can't just iterate over all the nodes in the pa...
false
42,365,761
-0.099668
0
0
-1
I got it. I created a subgraph instead of every output path from all_simple_paths() and just obtained their sum over an attribute by using size() function.
0
1,902
0
1
2017-02-21T11:14:00.000
python,networkx,shortest-path
Calculate sum of weights in NetworkX multigraph given path
1
1
2
42,365,979
0
0
0
So everyday, I need to login to a couple different hosts via ssh and run some maintenance commands there in order for the QA team to be able to test my features. I want to use a python script to automate such boring tasks. It would be something like: ssh host1 deploy stuff logout from host1 ssh host2 restart stuff log...
false
42,375,396
-0.066568
1
0
-1
If these manual stuffs is too many, then I may look into some server configuration managements like Ansible. I have done this kinda automation using: Ansible Python Fabric Rake
0
9,599
1
4
2017-02-21T18:40:00.000
python,linux,ssh
Automate ssh commands with python
1
1
3
42,375,591
0
0
0
So, I'm trying to use the ebaysdk-python module, to connect to ebay and get a list of orders. After struggle a little bit with the connection, I've finally have found the ebay.yaml syntax. I have then configured the user and password, but I'm receiving this Error 16112. So, this is my question: is there a way to connec...
true
42,380,443
1.2
0
0
0
I've finally found the way to do this: I have created a user token using the method auth'n'auth. This user token have almost a year of validity, so it can be used for my purpose. Now, there is another question around that.
0
69
0
0
2017-02-22T00:18:00.000
python,ebay-sdk
Error 16112 - How to connect to Ebay without interactivity?
1
1
1
42,380,791
0
0
0
I tried to test getting toast message on android device with Appium 1.6.3, but it is disappointed for me,the rate to correct get toast is very low. Is there anyone help me?
false
42,384,577
0
1
0
0
1.It depends upon how dynamic data is coming. 2. If you want to get toast data while swiping than it becomes hard to get accurate data.
0
509
0
0
2017-02-22T06:52:00.000
python,selenium-webdriver,automated-tests,ui-automation,python-appium
How to improve get toast correct rate on Appium 1.6.3 with uiautomator2?
1
1
3
42,408,979
0
0
0
I am using ZMQ to facilitate communications between one server and multiple clients. Is there a method to have the clients automatically find the ZMQ server if they are on the same internal network? My goal would be to have the client be able to automatically detect the IP and Port it should connect to.
false
42,395,369
0
0
0
0
It's not possible to do this in any sort of scalable way without some sort of broker or manager that will manage your communications system. The way that would work is that you have your broker on a known IP:port, and as your server and clients spin up, they connect to the broker, and the broker then tells your endpoin...
0
130
0
0
2017-02-22T15:14:00.000
python,server,client,zeromq,pyzmq
Python automatically find server with ZMQ
1
1
1
42,517,557
0
0
0
I have about 170 GB data. I have to analyze it using hadoop 2.7.3. There are 14 workers. I have to find total of unique MIME type of each document e.g. total number of documents that are text/html type. When I run mapreduce job(written in python), Hadoop returns many output files instead of single one that I am expecti...
false
42,406,596
0.066568
0
0
1
your job is generating 1 file per mapper, you have to force a reducer phase using 1 reducer to do this, you can accomplish this emitting the same key in all the mappers.
0
750
1
1
2017-02-23T03:42:00.000
python,hadoop,mapreduce
How to combine hadoop mappers output to get single result
1
2
3
42,406,958
0
0
0
I have about 170 GB data. I have to analyze it using hadoop 2.7.3. There are 14 workers. I have to find total of unique MIME type of each document e.g. total number of documents that are text/html type. When I run mapreduce job(written in python), Hadoop returns many output files instead of single one that I am expecti...
false
42,406,596
0.066568
0
0
1
Make your mapper to emit for each document processed - (doc-mime-type, 1) then count up all such pairs at reduce phase. In essence, it is a standard word count exercise except your mappers emit 1s for each doc's mime-type. Regarding number of reducers to set: Alex's way of merging reducers' results is preferable as al...
0
750
1
1
2017-02-23T03:42:00.000
python,hadoop,mapreduce
How to combine hadoop mappers output to get single result
1
2
3
42,414,979
0
0
0
I have many telegram channels, 24\7 they send messages in the format "buy usdjpy sl 145.2 tp 167.4" "eurusd sell sl 145.2 tp 167.4" "eurusd sl 145.2 tp 167.4 SELL" or these words in some order My idea is to create app that checks every channel's message, and redirects it to my channel if it is in the above format...
false
42,430,232
0.024995
1
0
1
Got the solution to this problem. Here is bot which automatically forwards messages from one channel to another without the forward tag. Moreover the copying speed is legit! @copythatbot This is the golden tool everyone is looking for.
0
36,182
0
3
2017-02-24T03:29:00.000
telegram,telegram-bot,python-telegram-bot
How can I redirect messages from telegram channels that are in certain format?[telegram bot]
1
3
8
56,536,495
0
0
0
I have many telegram channels, 24\7 they send messages in the format "buy usdjpy sl 145.2 tp 167.4" "eurusd sell sl 145.2 tp 167.4" "eurusd sl 145.2 tp 167.4 SELL" or these words in some order My idea is to create app that checks every channel's message, and redirects it to my channel if it is in the above format...
false
42,430,232
0.099668
1
0
4
You cannot scrape from a telegram channel with a bot, unless, the bot is an administrator in the channel, which only the owner can add. Once that is done, you can easily redirect posts to your channel by listening for channel_post updates.
0
36,182
0
3
2017-02-24T03:29:00.000
telegram,telegram-bot,python-telegram-bot
How can I redirect messages from telegram channels that are in certain format?[telegram bot]
1
3
8
42,467,337
0
0
0
I have many telegram channels, 24\7 they send messages in the format "buy usdjpy sl 145.2 tp 167.4" "eurusd sell sl 145.2 tp 167.4" "eurusd sl 145.2 tp 167.4 SELL" or these words in some order My idea is to create app that checks every channel's message, and redirects it to my channel if it is in the above format...
false
42,430,232
0.049958
1
0
2
This is very easy to do with Full Telegram API. first on your mobile phone subscribe to all the interested channels Next you develop a simple telegram client the receives all the updates from these channels Next you build some parsers that can understand the channel messages and filter out what you are interested in F...
0
36,182
0
3
2017-02-24T03:29:00.000
telegram,telegram-bot,python-telegram-bot
How can I redirect messages from telegram channels that are in certain format?[telegram bot]
1
3
8
42,441,369
0
1
0
How can I persist an API object across different Celery tasks? I have one API object per user with an authenticated session (python requests) to make API calls. A user_id, csrftoken, etc. is sent with each request. I need to schedule different tasks in Celery to perform API requests without re-authenticating for each ...
true
42,438,998
1.2
0
0
1
You can put these data into the database/memcache and fetch by userid as a key. If these data are stateless - it's fine. Concurrent processes take the authenticating parameters, construct request and send it. If it changes the state (unique incrementing request id, changing token, etc) after each request (or in some re...
0
152
0
1
2017-02-24T12:44:00.000
python,django,python-requests,celery
How can I persist an authenticated API object across different Celery tasks?
1
1
1
42,439,583
0
0
0
I have a raspberry pi, which is setup as a audio streaming server. I have used websockets and python as programming language. The client can listen to the live audio stream by connecting to the server hosted on raspberry pi. The system works well in localhost environment. Now, I want to access the server from the inter...
false
42,453,445
0
1
0
0
NAT punching is used for peer-to-peer (P2P) communication and your audio streaming server seems to be a client-server implementation. How and if this is going to work heavily depends on your NAT device (which kind of NAT is implemented). Chances are high that your NAT device has short timeouts and you need to punch hol...
0
3,652
0
0
2017-02-25T07:52:00.000
python,websocket,nat,stun
How to implement stun with python
1
1
2
64,177,395
0
0
0
Hey I am building a simple API server to handle some functionality for a chrome extension. But I need to the users of my extension/add-on to be logged in and for this I want to make the python api server HTTPS requests only. How would I go about verifying the certificate for my server from the chrome extension? Sorry f...
false
42,491,349
0.197375
0
0
1
You shouldn't have to do anything special. Any HTTPS requests made by the Chrome extension will go through the same certificate verification as would any other request made in the browser.
0
221
0
0
2017-02-27T16:54:00.000
python,ssl,google-chrome-extension
Python Server: Chrome Extension SSL certificate
1
1
1
42,491,557
0
0
0
I would like to know how traffic flows in SoftLayer between the servers, In course of traffic flow how to detect unusual traffic and how to detect ports that are prone to unusual/malicious traffic. Can we retrieve this information using any SoftLayer python API's ?
true
42,506,643
1.2
0
0
0
that is not possbile using the Softlayer's API even using the Softlayer's control portal that information is not avaiable. regards
0
61
0
0
2017-02-28T10:47:00.000
python-2.7,ibm-cloud-infrastructure
how to get unusual traffic or traffic information in SoftLayer using python API's
1
1
1
42,534,904
0
0
0
does anyone of you know how to find / click the YT-Like button in Python using selenium since it doesn't have a real Id, etc... Thanks for the answers
true
42,515,611
1.2
0
0
0
you can select with CSS Selector like this: if you want to like: #watch8-sentiment-actions > span > span:nth-child(1) > button if you want cancel like: #watch8-sentiment-actions > span > span:nth-child(2) > button
0
378
0
0
2017-02-28T17:54:00.000
python,selenium,button,youtube
Python - Selenium: Find / Click YT-Like Button
1
1
1
42,515,710
0
0
0
I am trying to intall webdriver and in order to open firefox i need the geckodriver to be installed and in the correct path. Firstly the download link to install geckodriver only allows you to install a file that is not an executable. So is there a way to make it an executable? secondly I have tried to change my path v...
true
42,524,114
1.2
0
0
7
For one make sure you are downloading the one for your OS. Windows is at the bottom of the list it will say win32. Download that file or 64 doesn't matter. After that you are going to want to extract the file. If you get an error that says there is no file in the Winrar file, this may be because in your Winrar settings...
0
66,774
0
8
2017-03-01T05:46:00.000
python,webdriver,geckodriver
how to install geckodriver on a windows system
1
2
5
42,542,815
0
0
0
I am trying to intall webdriver and in order to open firefox i need the geckodriver to be installed and in the correct path. Firstly the download link to install geckodriver only allows you to install a file that is not an executable. So is there a way to make it an executable? secondly I have tried to change my path v...
false
42,524,114
0
0
0
0
I've wrestled with the same question for last hour. Make sure you have the latest version of Firefox installed. I had Firefox 36, which, when checking for updates, said it was the latest version. Mozilla's website had version 54 as latest. So download Firefox from website, and reinstall. Make sure you have the lat...
0
66,774
0
8
2017-03-01T05:46:00.000
python,webdriver,geckodriver
how to install geckodriver on a windows system
1
2
5
46,927,125
0
1
0
requests.exceptions.Timeout VS requests.models.Response.status_code = 504 [gateway timeout] what is the actual difference between the two as both deals with saying timeout has occurred? Let us say Service s1 makes call to S2 In s1: request.post( url=s2,..., timeout=60 ) when will requests.exceptions.Timeout be rais...
false
42,558,294
0
0
0
0
The gateway timeout means the connected server had some sort of timeout after receiving your request(i.e. you did make a connection). However, the requests timeout exception means your script never connected to the server and timed out waiting on a response from the server (i.e. you did not make a connection).
0
1,354
0
1
2017-03-02T14:38:00.000
python,python-2.7,request,timeoutexception,http-status-code-504
python: requests.exceptions.Timeout vs requests.models.Response.status_code 504 ( gateway timeout )
1
1
1
42,558,358
0
0
0
I am trying to get more information from experienced people doing web scraping in general, I am getting into web scraping using Python libraries. At the same time, I noticed some people are using simple Bash, and using commands for web scraping such as wget, curl, sed, grep, awk. These commands seem to be much cleaner...
false
42,563,683
0
0
0
0
With Python you can also scrape sites rendered with JavaScript using selenium und a headless browser like PhantomJS. Maybe this is possible with bash scripting too, but the more complext your code gets the bigger the advantage of the clarity of python IMHO.
0
707
0
0
2017-03-02T18:56:00.000
python,bash,curl,sed,web-scraping
Using Bash scripting for web scraping over python libraries?
1
1
2
42,564,318
0
0
0
I've read the API documentation and there seem to be no way to get user email.
false
42,573,079
0
1
0
0
if you can see a page witch contains your needed data with your eyes. you can use web scraping to gather them.
0
67
0
0
2017-03-03T07:29:00.000
php,python
Is there any way to extract a list of users and their email ids from wattpad?
1
1
1
42,573,390
0
0
0
I am coding a program(server-client) in python 2.7, that exchange data through sockets. I use SSL to secure the connection. But here is the thing. I want to make the client and the server executables with pyinstaller, and i want the SSL certificate and the key to be "hidden" somewhere inside the python code... so i can...
false
42,607,360
0
0
0
0
Appereantly there isn't any answer to this question... so i figured out something else. I saved the certificate in a variable in my pythonic code :P and then before connecting to the server, the client saves the certificate to a temp file, and at the end delete it.
1
228
0
1
2017-03-05T10:42:00.000
python-2.7,ssl,ssl-certificate,embed
Embed SSL certificates
1
1
1
42,621,585
0
0
0
Can you click on an element, while the page is not fully load but the element is already loaded/visible? If yes then how? If no then is there any other solution?
false
42,608,100
0
0
0
0
Technically speaking, you could set an explicit wait targetting the "presence_of_element_located" or "visibility_of_element_located" condition. However keep in mind that the action fired by the click on the element could be binded in many ways, and some of them could take place after the dom is ready (when the complete...
0
122
0
0
2017-03-05T11:58:00.000
python,python-2.7,selenium,click,element
Python 2.7 Selenium, Click on button while the page isn't fully load
1
1
1
42,665,717
0
0
0
I have developed a lambda function which hits API url and getting the data in Json Format. So need to use modules/libraries like requests which is not available in AWS online editor using Python 2.7. So need to upload the code in Zip file, How we can do step by step to deploy Lambda function from windows local server t...
false
42,628,638
0.197375
0
0
1
You could use code build, which will build your code on the aws linux envoirnment. Then it wont matter if the envoirnment is windows or linux. code build will put the artifacts directly on s3, from there you can directly upload it to lambda.
1
614
0
1
2017-03-06T14:52:00.000
python,amazon-web-services,aws-lambda
AWS lambda function deployment
1
1
1
43,783,169
0
1
0
What does the mytubeid tag(like <iframe src="/portal/corporateEventsCalendarIframe.html" mytubeid="mytube1" width="820" height="1600" frameborder="0"/>) do in an iframe? Note that the iframe do not have an id or as such in it! How can it be referenced in code? I am using python+selenium+scrapy to build a webscraping t...
true
42,653,958
1.2
0
0
0
If you want to find this iframe using selenium try something like driver.find_element_by_xpath('//iframe[@mytubeid="mytube1"]'). For more explicit answer please provide some code and site url.
0
159
0
0
2017-03-07T16:57:00.000
python,html,selenium,iframe,scrapy
Referencing mytubeid in iframe using Python Selenium
1
1
2
42,658,773
0