Python Automation [closed] - python

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I'm trying to capture a test case result where table content Search/filter output need to cross check each time when the test run. I have attached a table grid that I need to use to search/filter. I'm using python script for the automation.
Any suggestion?

You can use selenium to test. The table's inner HTML can be accessed using
table_content = element.get_attribute('innerHTML').
you can parse that HTML to cross check your results.
Have a look at this question for reference.
Get HTML Source of WebElement in Selenium WebDriver using Python

Related

How do I find CSS Selector of slider on webpage? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I dont really have any experience with CSS but for a python selenium script im writing I need to figure out how I find the CSS selector of the slider on the bottom of this webpage https://www.publish0x.com/blockchain-insights/millennials-and-crypto-xvwykyo
When I try to use the option 'copy selector' while selecting the element I only get #tipslider which doesn't seem to be it.
it seem to be it actually...
the input[type=range] is a special HTML element which represents a range slider.
you can change the value of it by changing the value attribute!
Fixed it. The #tipslider actually did work.

what is the better way to get the information from this website with scrapy? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am trying to scrape this website with scrapy and I have had to search for each link extracting the information from each one, I would like to know if there is an API of the site that I can use (I don't know how to find it).
I would also like to know how I can obtain the latitude and longitude? Currently the map is shown but I do not know how to obtain the numbers
I appreciate any suggestions
The website may be loading the data dynamically using Javascript. Use your browser dev tools and look at the networking tab, look for any XHR calls which may be accessing an API. Then you can scrape from that directly.

Submit python script through PHP/AJAX [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I made a python script which can convert .MOV to .MP4. I want to execute the script from my website made on PHP.
So the example is I'm browsing a video on the web page then I click on submit and I'm waiting for the python script executing. It's working already but now I need to adapt it to my actual website and the session cookie (PHP).
But I don't know how to do that. I saw on some forum that they use Flask or Django but my website is already built and I don't want to rebuilt it.

Web scraping options [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Could you recommend me some ways to scrape data from a web page?
I have been trying to use Python but I am stuck with my code. I was thinking about using Octoparse. This is the webpage (http://www.mlsa.am/?page_id=368), it is a drop-down list where the selection of a previous case allows you to choose other options in the other cases.
You could use scrapy framework specially built for scraping purpose only.
As an starter you can start from official documentation & you will find everything you need from it.
https://docs.scrapy.org/en/latest/intro/tutorial.html
except scrapy you can use beautifulsoup also.

How to upload an HTML file into python? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Im trying to write a python (2.7) program that can load a set of html files, search the files for certain variables and then extract the variables in json. Does anyone have an idea where to start, what commands or modules to import?
you might need beautifulsoup, this will help to parse the html.
You can open the html file using builtin python open funciton

Categories

Resources