Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Multi-threading
Post: RE: Multi-threading

Good Morning, I followed a really good tutorial on Youtube. https://www.youtube.com/watch?v=IEEhzQoKtQU
HarleyQuin General Coding Help 2 24,087 Jul-15-2020, 08:45 AM
    Thread: 300 free curated Python code snippets
Post: RE: 300 free curated Python code snippets

Sounds like an awesome contribution man, i'll take a look :) Good work
HarleyQuin Code sharing 1 51,551 Jul-14-2020, 03:32 PM
    Thread: Need help creating a simple script
Post: RE: Need help creating a simple script

(Jul-14-2020, 07:44 AM)Nonameface Wrote: I dont know anything about loops either. Like i said i just started. Way point has a messenger, and i need to keep looking at it to communicate with other pe...
HarleyQuin General Coding Help 12 4,534 Jul-14-2020, 07:57 AM
    Thread: Need help creating a simple script
Post: RE: Need help creating a simple script

A. You need to write your code using the Python tag like i have done, otherwise people frequently don't understand what you've written. B. Back to your code: import webbrowser from time import sleep...
HarleyQuin General Coding Help 12 4,534 Jul-14-2020, 07:22 AM
    Thread: Need help creating a simple script
Post: RE: Need help creating a simple script

Okay. Well here is an example of the time module. from time import sleep import webbrowser import os webbrowser.open_new('https://www.halowaypoint.com/en-us/news') # This opens URL with default brow...
HarleyQuin General Coding Help 12 4,534 Jul-14-2020, 04:57 AM
    Thread: Python Automated Email
Post: RE: Python Automated Email

That makes sense, i did think that might be the case. Will the email send if you remove the excess code? if so.. try setting: sheet.cell_value(i, 3)as: some_variable = str(sheet.cell_value(i, 3))...
HarleyQuin Networking 10 4,523 Jul-13-2020, 09:00 AM
    Thread: Need help creating a simple script
Post: RE: Need help creating a simple script

Okay, so the easiest option here requiring very little knowledge of python, is to just create an executable. Then you can set it to run everyday at a certain time using windows scheduler. Then to clos...
HarleyQuin General Coding Help 12 4,534 Jul-13-2020, 08:53 AM
    Thread: Need help creating a simple script
Post: RE: Need help creating a simple script

Hello buddy, Share what you have currently, using and we will see what we can add onto it, to hopefully help you accomplish your goal.
HarleyQuin General Coding Help 12 4,534 Jul-13-2020, 06:09 AM
    Thread: Unable to import statsmodel
Post: RE: Unable to import statsmodel

How old is the code you are trying to replicate? Are the versions of your modules sufficient. "pandas.core.datetools" module was removed in early 2019, January i think.(GH14105, GH14094) And has be...
HarleyQuin Data Science 1 3,891 Jul-13-2020, 03:00 AM
    Thread: Python Automated Email
Post: RE: Python Automated Email

Hey, So just a quick one before we get started: EMAIL_ADDRESS = "*********@gmail.com" EMAIL_PASSWORD = "XXXX" msg = EmailMessage() msg['Subject'] = 'Email Subject' msg['From'] = '"*********@gmail....
HarleyQuin Networking 10 4,523 Jul-12-2020, 04:44 PM
    Thread: Python Automated Email
Post: RE: Python Automated Email

(Jul-12-2020, 02:41 PM)aidanh26 Wrote: I appreciate you taking the time to have a look so thank you!! Just as an fyi.....before I added in the section below, it would successfuly email a given addr...
HarleyQuin Networking 10 4,523 Jul-12-2020, 03:48 PM
    Thread: Python Automated Email
Post: RE: Python Automated Email

Hey, Okay hmm. I use a module called email.message with smtp to send my emails so i don't think i can offer you any further advice on your current mailing method, sorry! That being said. here is the ...
HarleyQuin Networking 10 4,523 Jul-12-2020, 02:03 PM
    Thread: Web Crawler's Crawling Ability
Post: RE: Web Crawler's Crawling Ability

This is crazy question. What are you asking? As above, is it your own crawler? If so its defined and limited by your ability to build it/variables in the program. If its not your own, does the sourc...
HarleyQuin Web Scraping & Web Development 3 2,743 Jul-12-2020, 01:21 PM
    Thread: Python Automated Email
Post: RE: Python Automated Email

Does it throw an error? - If not then have you changed your gmail settings to allow less secure apps to access your account?
HarleyQuin Networking 10 4,523 Jul-12-2020, 01:17 PM
    Thread: Beautiful Soup (suddenly) doesn't get full webpage html
Post: RE: Beautiful Soup (suddenly) doesn't get full web...

(Jul-11-2020, 11:52 AM)j.crater Wrote: Thank you both for answers. @HarleyQuin The code I ran months ago was same as I posted here, but result was not same. As stated, on my first attempt I got all...
HarleyQuin Web Scraping & Web Development 8 16,819 Jul-11-2020, 02:04 PM
    Thread: Beautiful Soup (suddenly) doesn't get full webpage html
Post: RE: Beautiful Soup (suddenly) doesn't get full web...

Hey bro, So i would recommend using the code that i used below:- It returns full request. Its hard for me to know what it is missing compared to an original you ran months ago tho... The below quer...
HarleyQuin Web Scraping & Web Development 8 16,819 Jul-11-2020, 09:37 AM
    Thread: Try-except in while loop: error with closing program
Post: RE: Try-except in while loop: error with closing p...

Yeah, now is a good time to update to Python 3.x usability will only get worse!
HarleyQuin General Coding Help 7 2,859 Jul-03-2020, 10:46 AM
    Thread: Try-except in while loop: error with closing program
Post: RE: Try-except in while loop: error with closing p...

Hey buddy, I tried this. Works every-time. I'm still looking at the reason your code failed. i'll update when i find it. I would definitely look at adding a sleep function. While loops shouldn't loo...
HarleyQuin General Coding Help 7 2,859 Jul-03-2020, 10:14 AM
    Thread: Is using while True loop good?
Post: RE: Is using while True loop good?

Sure, its also important to take into account the time it will take your function to complete. What sort of function are you using? Does it take long to execute? The more code you add then naturally ...
HarleyQuin General Coding Help 5 3,527 Jul-03-2020, 09:49 AM
    Thread: Is using while True loop good?
Post: RE: Is using while True loop good?

It would constantly loop so whilst it doesn't seem like the code would use up much resource it doesn't seem sensible. I'd at least add a time delay to loop every 5 minutes or something. time.sleep(30...
HarleyQuin General Coding Help 5 3,527 Jul-02-2020, 04:36 PM

User Panel Messages

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