Interact with web pages using python [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am quite fluent in Python, but have only really used it for data analysis.
I would like to learn how I can interact with webpages. For instance, I want to start by writing a code that will press a button on a webpage for me.
I just don't know where to start or what to google to find resources about this.
Could anyone point me out in the right directions, or suggest some key words that I could search for?
Thanks.

Have you tried to use the pyautogui module, which allows you to programmatically control the mouse and the keyboard?
An example of an automatic form filler on a webpage is available in chapter 18 of the Automate the Boring Stuff with Python book.

Related

Must everyone who uses my program see the ugly code next to it? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I started working on some beginner projects and games to test my abilities.
I found that all I was doing is simply writing a code and seeing the ugly output next to it (in the interactive window). The code works, but that's not how I want a normal user to interfere with it.
I'm looking for a way to display my python program properly to a user. Is there some sort of interface manipulating that I should learn in order to accomplish that? thanks.
It sounds like you're seeking to build a GUI for your programs.
In several of my early projects, I used the built-in Tkinter module to accomplish what you're suggesting. It may not give you the most modern-looking GUI, but it's nice to use due to it being included with Python by default and the abundance of documentation and tutorials.
There are tons of great videos on YT that walk you through step-by-step on everything from pop-up, dialog-box messages, to full on user-input, menu-laden GUIs. Just search "tkinter tutorials".

Using Scrapy to use a website's search function [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am kind of a rookie using Scrapy, just starting to use it.
I've just found myself stuck on a part because I can't seem to find anything online on it nor anything similar asked on stackoverflow!
I am basically reading a few lines from a .csv file and I wanna use the search function on this website 'http://collectorsfrenzy.com/'
How should I go around this?
First, try to identify the search endpoint used within the website (i.e. collectorsfrenzy.com/search?q={query} in this scenario). Once you figured that out, append your search term to that and use it as starting point for crawling and scrape the resulting content.

Is there an interactive Python-based environment similar to Mathematica? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am teaching art students the basics of Python and it would be very convenient to add some graphics (drawings, pictures, etc.) in the comments within the code instead of "just" code and text comments.
I have seen some friends using Mathematica and exchanging beautiful files that include graphics, comments, pictures, etc.
Does such a thing exists for Python?
Have you looked at the iPython-Notebook? It allows you to write/run code and use html for notes. If you know html it will be easy to add graphics in too. Not sure if that exactly answers your problem, but it is definitely a nice tool
Link: http://ipython.org/notebook.html

What's the best library for automated-tests for IE with Python? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am using Python to do automated tests for IE. Currently I use PAMIE. It can click links and find words very well if a web page has no iframes. However, some of my tested pages include several iframes, and PAMIE seems can't handle it correctly. It can't find the text strings in the iframes.
Does anyone recommend some Python libraries instead of PAMIE? Or is there a way to access iframes in a web page with PAMIE? It's better if there is an example.
Thanks!
Use Selenium with it's Python client binding. Selenium can let you record your own workflow or write your own script in one of its supported languages. The tests are conducted on an actual browser as opposed to a simulated one. There's no system can top it at the moment.

Controlling Music and Video in Python [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm trying to write a karaoke program in python. Every karaoke software has basic functionality like seeking in the video as well as modulating the pitch of music by half steps. What are some modules that I can use to permit this functionality?
I'm going to use wxPython to write the gui portion if that makes a difference!
Honestly you might want to take a look at PyGame - it has fairly robust libraries for handling stuff like music and movies: http://www.pygame.org/docs/
wxPython has a built in media controller, wx.MediaCtrl, which can play both audio and video. It has most of the basic functionality built in, like seek, pause, etc. I've found it very easy and reliable.

Categories

Resources