Giter VIP home page Giter VIP logo

Comments (3)

didix21 avatar didix21 commented on September 8, 2024

You have to create an instance of MdUtils:

import requests
from bs4 import BeautifulSoup
from mdutils.mdutils import MdUtils


save_path = r'/Users/myname/Documents/foldername/Python/Etymonline'

URL = 'https://www.etymonline.com/search?q=love'
name = URL.split("=")[1]
filename = "".join([save_path,name])
name_markup =  '<h1> ' + name + ' </h1>' + '\n'
page = requests.get(URL)
soup = BeautifulSoup(page.content, 'html.parser')
content = soup.find(class_='word--C9UPa word_4pc--2SZw8')
full_text = content

mdFile = MdUtils(file_name=filename, title=name)
mdFile.newparagraph(full_text)
mdFile.create_md_file()

from mdutils.

slowkid12 avatar slowkid12 commented on September 8, 2024

I am the worst, that makes sense. Thank you. I apologize for wasting your time.

Thank you for making this!

from mdutils.

didix21 avatar didix21 commented on September 8, 2024

You're welcome! 🤗

from mdutils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.