Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: shutil.copy questions
Post: RE: shutil.copy questions

I've tried below import shutil import pathlib from pathlib import Path def last_modified(direc): return max((p for p in Path(direc).iterdir() if p.is_file()), key=lambda p: p.st...
kristianpython General Coding Help 3 2,350 Jul-14-2020, 09:01 AM
    Thread: shutil.copy questions
Post: shutil.copy questions

Hi, I want to run a script that uses the shutil module to copy the last added file. I can use the code below to copy a file, but how would I go about telling it to copy the last modified file only i...
kristianpython General Coding Help 3 2,350 Jul-14-2020, 07:51 AM
    Thread: Instagram Bot _ Posting Comments
Post: RE: Instagram Bot _ Posting Comments

Tried to set up a for loop using selenium and the pyautogui. If the code can not find ("//textarea[@aria-label='Add a comment…']") it crashes. If I # that line the scroll works fine. I'll keep working...
kristianpython Web Scraping & Web Development 3 3,415 May-23-2020, 12:54 PM
    Thread: Instagram Bot _ Posting Comments
Post: RE: Instagram Bot _ Posting Comments

Intapy API was discontinued.
kristianpython Web Scraping & Web Development 3 3,415 May-21-2020, 12:51 PM
    Thread: Instagram Bot _ Posting Comments
Post: Instagram Bot _ Posting Comments

Hi Guys, I have put together a basic bot that opens my instagram and comments on the first photo. I have managed to make it scroll down in random intervals but am not having much success in making i...
kristianpython Web Scraping & Web Development 3 3,415 May-21-2020, 12:27 PM
    Thread: Instagram Phone Emulation
Post: Instagram Phone Emulation

Hi, I am using selenium.webdriver to open my companies instagram. I am having issues with getting a comment to input import autoit from time import sleep from selenium import webdriver from seleni...
kristianpython Web Scraping & Web Development 0 2,052 May-19-2020, 11:54 AM
    Thread: print(elem) to .txt files
Post: print(elem) to .txt files

Hi, Below is a small script I am working on. It lists all the files in a directory. I am unsure how to get the print(elem) to save the data to a .txt file. Any help would be great. _ import os '...
kristianpython General Coding Help 1 1,319 May-15-2020, 09:17 AM

User Panel Messages

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