Python Forum
Running a code through multiple files in a folder
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running a code through multiple files in a folder
#1
Hello,

I am new to python. I have 1000 files in a folder and I want to run a block of code on all the files in the folder. The files contains textual content (tweets) and I want to remove the "https" and remove all the columns (eg. timestamp, article id etc) apart from the tweet content column
Any help would be extremely appreciated.
Reply


Messages In This Thread
Running a code through multiple files in a folder - by Rai - Feb-13-2018, 12:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to generating multiple json files using python script dzgn989 4 224 May-10-2024, 03:09 PM
Last Post: deanhystad
  problem in running a code akbarza 7 724 Feb-14-2024, 02:57 PM
Last Post: snippsat
  writing and running code in vscode without saving it akbarza 1 436 Jan-11-2024, 02:59 PM
Last Post: deanhystad
  Compare folder A and subfolder B and display files that are in folder A but not in su Melcu54 3 624 Jan-05-2024, 05:16 PM
Last Post: Pedroski55
  python convert multiple files to multiple lists MCL169 6 1,648 Nov-25-2023, 05:31 AM
Last Post: Iqratech
  the order of running code in a decorator function akbarza 2 571 Nov-10-2023, 08:09 AM
Last Post: akbarza
  Rename files in a folder named using windows explorer hitoxman 3 793 Aug-02-2023, 04:08 PM
Last Post: deanhystad
  splitting file into multiple files by searching for string AlphaInc 2 968 Jul-01-2023, 10:35 PM
Last Post: Pedroski55
  Rename all files in a folder hitoxman 9 1,602 Jun-30-2023, 12:19 AM
Last Post: Pedroski55
  how do I open two instances of visual studio code with the same folder? SuchUmami 3 950 Jun-26-2023, 09:40 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

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