Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scraping text from application?
#1
Hello every1!

I am completly new with python so please bear with me Blush
Is there a way to scrape the text out of applications. For e.g. I have a windows application that I would like to scrape text out of it. If I understand correctly BeautifulSoup library is made to scrape text out of websites via inspecting html content. With it you can extract/scrape text from websites. I am looking for similar library that is able to process text from windows application that is fixed in window size (e.g. w:480 h:340). Is there a way to do so with python?

If I haven't been clear enough with my question, please let me know.

Thanks for the read!
Reply
#2
Can I ask why?
You can certainly do that (write your own), but you can also find specific text in a script using
OS tools like grep (linux). For instance if you wanted to find all scripts that contained the value
w:480 beginning at the current directory and for any sub directories, you would use (from command line):
grep -ri -m 1 --include '*.py' 'w:480' .
Perhaps redirect it to a file names results.txt
grep -ri -m 1 --include '*.py' 'w:480' . > results.txt
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Scraping all website text using Python MKMKMKMK 1 2,093 Nov-26-2020, 10:35 PM
Last Post: Larz60+
  Web Scraping on href text Superzaffo 11 7,396 Nov-16-2019, 10:52 AM
Last Post: Superzaffo
  scraping in a text/javascript saasyp 1 2,231 Aug-31-2019, 11:39 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

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