0

I was wondering if there is a way to scrape a website using Python, then I can do some changes in the HTML or the scraped data (for example change the font color or background color..etc) and then open the edited HTML in the browser.

I was able to get the URL and edit the data using requests and BeautifulSoup, but then I got stuck on how to re-open the HTML file in the browser.

This is my code:

enter image description here

So now I got the whole html data in the variable lime_changed but am stuck on how to re-open it, can someone help me with this one.

2
  • 1
    you could try writing the new html string into a html file and open it in your browser Commented Dec 11, 2019 at 11:17
  • If you can give up on python, "Tamper Monkey" can do what your are looking for. Commented Dec 11, 2019 at 11:44

1 Answer 1

0

Depending on what your goal is, you can also use Selenium to automate browser control from Python 👍

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.