Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Problem with Python 3 socket
Post: RE: Problem with Python 3 socket

SOLVED. All I needed was a sock.shutdown(socket.SHUT_WR) after the sock.sendall(...) in the client. Now the client sends all that and tell the server it's over, then the server can close its end prope...
JChris Homework 3 19,313 Sep-03-2017, 05:20 PM
    Thread: Problem with Python 3 socket
Post: Problem with Python 3 socket

I need to create a simple server-client interface with Python sockets. This is the code I have: server.pysock = socket.socket() sock.bind((address, port)) sock.listen(5) client_sock, client_address =...
JChris Homework 3 19,313 Sep-02-2017, 07:15 PM
    Thread: Encoding issue while running Sysinternals Autorunsc via Python subprocess
Post: Encoding issue while running Sysinternals Autoruns...

I have a Python 3.6.0 script where I run autorunsc v13.71 (https://technet.microsoft.com/en-us/sysi...63902.aspx) on the system (x86 or x86_64 version, according to the system bitness using platform.m...
JChris General Coding Help 0 3,475 Jun-13-2017, 12:01 AM
    Thread: Proxy Server - Modules can't connect to URL
Post: RE: Proxy Server - Modules can't connect to URL

Well, it seems your problem lies in the 'Configuration.getCVEDict()' call. You should take a look inside your class to see if the method 'getCVEDict()' is propersly defined. What is 'Configuration', i...
JChris General Coding Help 7 7,241 Nov-16-2016, 02:59 PM
    Thread: Program that outputs HQ addresses of companies from Google + Local pages
Post: RE: Program that outputs HQ addresses of companies...

You can write anything with any programming language, it just depends on your effort. If you want to interact with Google Maps I suggest this free course from Udacity and Google Maps Documentation.
JChris General Coding Help 2 5,066 Nov-14-2016, 09:41 PM
    Thread: Is there a way to disable those popups?
Post: Is there a way to disable those popups?

Example: [Image: http://i.imgur.com/585Obmx.png] [Image: http://i.imgur.com/CcW7tXC.png] Some of them are useful but the vast majority isn't so helpful, like the ones above. Is there a way to disab...
JChris Board 1 3,418 Nov-14-2016, 04:15 PM
    Thread: Extract data csv file and write in another file
Post: RE: Extract data csv file and write in another fil...

I would first use a source code editor instead of terminal/IDLE, no need for fancy IDEs as of now (Notepad++ is simple and good enough in your case). Working directly on terminal/IDLE isn't the best a...
JChris Homework 3 5,201 Nov-14-2016, 04:07 PM
    Thread: [SOLVED] requests returning HTTP 404 when I follow a link after I do a POST
Post: RE: requests returning HTTP 404 when I follow a li...

(Nov-14-2016, 11:06 AM)buran Wrote: Please, note that there are 2 more hidden fields that you must supply as parameters to the POST request - form_id and form_build_id Also username field is actuall...
JChris Web Scraping & Web Development 9 28,194 Nov-14-2016, 02:23 PM
    Thread: [SOLVED] requests returning HTTP 404 when I follow a link after I do a POST
Post: RE: requests returning HTTP 404 when I follow a li...

I found the problem, the site wasn't blocking me, I was just not logged in. I'm trying to do a POST against "https://www.packtpub.com" as I can't find any /login, /signin path, but it isn't working as...
JChris Web Scraping & Web Development 9 28,194 Nov-13-2016, 08:26 PM
    Thread: Enable post edit
Post: RE: Enable post edit

I can't find the "edit" button even if I'm inside the 10 minutes rules, for example: [Image: http://i.imgur.com/dOS7v8U.png] "2 minutes ago" and no edit button.
JChris Board 4 4,916 Nov-13-2016, 03:49 PM
    Thread: [SOLVED] requests returning HTTP 404 when I follow a link after I do a POST
Post: RE: requests returning HTTP 404 when I follow a li...

(Nov-13-2016, 03:32 PM)Larz60+ Wrote: Please post (cut & paste) error traceback Thank you There's no error, just: D:\...\python.exe D:/.../main.py https://www.packtpub.com/freelearning-claim/17...
JChris Web Scraping & Web Development 9 28,194 Nov-13-2016, 03:46 PM
    Thread: Enable post edit
Post: Enable post edit

Please, enable post/topic editing. If someone wants to correct a mistake/typo, they won't be able to as of now.
JChris Board 4 4,916 Nov-13-2016, 02:46 PM
    Thread: [SOLVED] requests returning HTTP 404 when I follow a link after I do a POST
Post: [SOLVED] requests returning HTTP 404 when I follow...

I get one free ebook a day from Packt Publishing with their "Free Learning - Free Technology Ebooks" promo. I'm trying to automate this process. I do a POST against their root path to login, after tha...
JChris Web Scraping & Web Development 9 28,194 Nov-13-2016, 02:45 PM
    Thread: which code is more readable?
Post: RE: which code is more readable?

I also vote for example 0. From "The Zen of python":  Quote:Readability counts.
JChris General Coding Help 5 5,805 Nov-13-2016, 02:44 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020