Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Encrypting Oracle Passwords / Python Library for That?
Post: Encrypting Oracle Passwords / Python Library for T...

I have numerous Python scripts that have been written over the past several years. Many of those interact with several Oracle databases in our office. Currently, all of those Python scripts have the...
bmccollum General Coding Help 1 2,595 Jun-11-2021, 04:09 PM
    Thread: Downgrade from Python 64-bit to 32-bit?
Post: Downgrade from Python 64-bit to 32-bit?

I've been running the 64-bit version of Anaconda/Python on my development machine. I have the 64-bit Oracle client installed on this development machine. One of the Python scripts uses the 64-bit cx...
bmccollum General Coding Help 0 1,897 Jun-16-2020, 09:21 PM
    Thread: IMAPLib Has No Attribute IMAP4_SSL. Help!
Post: RE: IMAPLib Has No Attribute IMAP4_SSL. Help!

Thanks very much for the link. I'll check out the other packages that are mentioned in that link and will try them out.
bmccollum General Coding Help 3 3,922 Jun-13-2020, 04:34 AM
    Thread: IMAPLib Has No Attribute IMAP4_SSL. Help!
Post: RE: IMAPLib Has No Attribute IMAP4_SSL. Help!

So I changed things up just slightly, and this exchange server / email inbox access code now performs fine outside of my development environment. Code is now as follows: from imaplib import IMAP4 ...
bmccollum General Coding Help 3 3,922 Jun-12-2020, 07:33 PM
    Thread: IMAPLib Has No Attribute IMAP4_SSL. Help!
Post: IMAPLib Has No Attribute IMAP4_SSL. Help!

I've written a Python script that checks an email address on an Exchange server once per minute to check for new emails, download those emails as individual text files, then turn around and parse thru...
bmccollum General Coding Help 3 3,922 Jun-12-2020, 03:20 AM
    Thread: Python 3.7.4 (FTPLib Deprecated). Now What?
Post: Python 3.7.4 (FTPLib Deprecated). Now What?

I've been running a Python script for a while that scrapes data from a website, parses through what it finds, saves everything to a CSV file, and then uses FTPLib to move the CSV to an FTP location. ...
bmccollum General Coding Help 1 2,611 May-15-2020, 09:24 PM
    Thread: How to Remove Non-ASCII Characters But Leave Line Breaks In Place?
Post: RE: How to Remove Non-ASCII Characters But Leave L...

Many thanks for the couple of recommendations on how to address the non-ASCII character situation without removing line break characters!
bmccollum General Coding Help 4 4,315 Apr-09-2020, 06:53 PM
    Thread: How to Remove Non-ASCII Characters But Leave Line Breaks In Place?
Post: How to Remove Non-ASCII Characters But Leave Line ...

I have a function in a Python script that serves to remove non-ASCII characters from strings before these strings are ultimately saved to an Oracle database. # This should remove any ASCII charact...
bmccollum General Coding Help 4 4,315 Apr-09-2020, 05:35 PM
    Thread: How to Save Full Email Body to CLOB in Oracle w/Carriage Returns?
Post: How to Save Full Email Body to CLOB in Oracle w/Ca...

I've been working on code that successfully saves an entire email body content to a CLOB field in Oracle. For the life of me, I cannot get the carriage returns that are present in the Oracle email to...
bmccollum General Coding Help 1 2,295 Mar-12-2020, 09:58 PM
    Thread: Python Library for Reading POP Emails?
Post: Python Library for Reading POP Emails?

Trying to determine if the poplib Python library is the appropriate one that most Python developers use for reading emails sitting out on a POP3 server? I've done lots of Python coding, but until now...
bmccollum General Coding Help 1 3,643 Jan-03-2020, 11:39 PM
    Thread: Random Loss of Control of Website When Scraping
Post: Random Loss of Control of Website When Scraping

I've been writing a Python script to scrape a site. I'm accessing & controlling the site using Selenium. Here's an example of a typical page on the site: https://www.dibbs.bsm.dla.mil/Awards/Aw...
bmccollum Web Scraping & Web Development 0 1,519 Aug-30-2019, 04:04 AM
    Thread: PyPDF2 Hanging When Trying to Open Corrupted PDF
Post: RE: PyPDF2 Hanging When Trying to Open Corrupted P...

Okay, so I wasn't waiting long enough for the Try... Except block to catch the file open error. I ran it again and gave it about 10-15 min. and it finally did get into the "Except" portion of the Try...
bmccollum General Coding Help 6 8,780 Nov-08-2018, 11:05 PM
    Thread: PyPDF2 Hanging When Trying to Open Corrupted PDF
Post: PyPDF2 Hanging When Trying to Open Corrupted PDF

I'm using the PyPDF2 library to cycle through several thousand PDFs each day, search for specific text that's present in the top-most part of the PDF that indicates the file can't natively be opened i...
bmccollum General Coding Help 6 8,780 Nov-08-2018, 07:00 PM
    Thread: Python / Web Scraping / Idle AWS Instances
Post: Python / Web Scraping / Idle AWS Instances

I have a Python script that runs daily on an Amazon Web Services instance (Windows) daily to scrape data from a website. Most of the time the scrape runs successfully without issue and sends a comma...
bmccollum General Coding Help 0 2,320 Sep-28-2018, 09:02 PM
    Thread: BeautifulSoup 'NoneType' object has no attribute 'text'
Post: RE: BeautifulSoup 'NoneType' object has no attribu...

When I look at the HTML retrieved from Beautiful Soup on the new/local VM, there's results in there. I think what I need to do is save a copy of what the Beautiful Soup objecty gets as a whole from t...
bmccollum Web Scraping & Web Development 9 14,671 Sep-14-2018, 12:56 PM
    Thread: BeautifulSoup 'NoneType' object has no attribute 'text'
Post: RE: BeautifulSoup 'NoneType' object has no attribu...

I'm sort of at the end of my rope currently on this one. I've put in time.sleep() statements as long as 4-5 min. as to give the page a ton of time to load to where Beautiful Soup can retrieve the HTM...
bmccollum Web Scraping & Web Development 9 14,671 Sep-13-2018, 01:36 PM
    Thread: BeautifulSoup 'NoneType' object has no attribute 'text'
Post: RE: BeautifulSoup 'NoneType' object has no attribu...

I'm not remoted in to the AWS instance right now, so I'm not completely sure about the time.sleep vs WebDriverWait. If for some reason I'm using time.sleep, I may need to adjust this to WebDriverWait...
bmccollum Web Scraping & Web Development 9 14,671 Sep-12-2018, 03:21 AM
    Thread: BeautifulSoup 'NoneType' object has no attribute 'text'
Post: RE: BeautifulSoup 'NoneType' object has no attribu...

I'll take a shot at the delay trick. From memory, I think there's currently about a 15 second delay to begin with, but I can always double that to see if that makes a difference. Will chime back in ...
bmccollum Web Scraping & Web Development 9 14,671 Sep-12-2018, 03:00 AM
    Thread: BeautifulSoup 'NoneType' object has no attribute 'text'
Post: RE: BeautifulSoup 'NoneType' object has no attribu...

Thank you so much for your feedback and the questions. I have a few "odd" areas of the pages I'm scraping with the site that the Python script is written for that aren't very reliable to scrape using...
bmccollum Web Scraping & Web Development 9 14,671 Sep-12-2018, 02:33 AM
    Thread: BeautifulSoup 'NoneType' object has no attribute 'text'
Post: BeautifulSoup 'NoneType' object has no attribute '...

I have some Python scripts running on 2-3 Amazon Web Services instances that scrape records from a few websites. The code has been running fine on these AWS instances. I created a new local VM today...
bmccollum Web Scraping & Web Development 9 14,671 Sep-11-2018, 10:49 PM

User Panel Messages

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