Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sweep: can you provide me structure of the repo #6

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions STRUCTURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Repository Structure

This file provides an overview of the structure of the repository and a brief description of each file.

- README.md: This file provides a brief description of the repository and instructions on how to run the Python script in main.py. It also contains information about the purpose of the repository, which is to demonstrate a simple web scraping example using the `requests` library in Python.

- main.py: This is the main script of the repository. It contains a simple Python script that fetches and prints the content of a website using the `requests` library. The script defines a function `fetch_website_content(url)` that sends a GET request to the provided URL and returns the response text if the status code is 200. The script then calls this function with a sample URL and prints the first 500 characters of the fetched content.