Breaking the ice
This is my very first time participating in Hacktoberfest, and as a requirement for my open source course, I am required to successfully make 4 PRs (1 PR per week) to open source projects while also having these PRs accepted and merged. I may have the experience of collaborating with classmates and contributing to their projects, this will be my first actual open source contribution to someone outside of class. I was a bit anxious about the standards of creating issues, asking to be assigned for the issue, or how repo owners want a solution done in a specific way. So for starters, I chose a simple issue to work on.
surreal30
/
Food-Data-Scrapper
Scrapping data for https://github.com/surreal30/Is-My-Food-Healthy
About
This repository serves as a directory to hold the web scrapping script for the the repo Is-My-Food-Healthy That app requires lots and lots of data. And entering that manually even with a team for 20 people is a mammoth task. These scripts automated it.
Why is the website url hidden?
That's a very intelligent question! Well, the reason is that I scrapped this data from a site and I am not sure of the legality. So, it' better not to mention it. And yes, that site was really really helpful.
What is missing?
Currently I am looking for sites to scrap data for ingredients, artificial colours, preservatives, etc. I am researching and looking for them. Once that is done, I will create that script for those as well and add it to this repo.
Get started
Requirements
- Python3
- requests library (Needs to be installed separately)
- BeautifulSoup from bs4…
Issue #1
The first issue I worked on is to simply create a requirements.txt for the project to make it easy for users to install any packages required by the program. The slightly tricky part with this issue is that the repo owner tipped me that they use uv as their package manager, to which I have never heard of before. So, I had to do research about this package manager to ensure that generating and installing requirements.txt is compatible with uv.
PR #1
My Pull Request consists of what I accomplished and how I accomplished the task, while also interacting with the repo owner for any additional request from them.
The repo owner also provided a comment which is a nitpick based on some line I changed in the README.md. This made me realize that my prettier autoformatted the file when I saved, causing it to make changes I did not intend to make. Fortunately, the changes made affect nothing as it only added a cancellation character. This gave me the realization that not all projects use formatters, so I'm taking note to either have my formatter turned off if the project does not use it, or do research on how I can make the formatter project specific.
The above is the detailed content of Hacktoberfest Part 1. For more information, please follow other related articles on the PHP Chinese website!

To maximize the efficiency of learning Python in a limited time, you can use Python's datetime, time, and schedule modules. 1. The datetime module is used to record and plan learning time. 2. The time module helps to set study and rest time. 3. The schedule module automatically arranges weekly learning tasks.

Python excels in gaming and GUI development. 1) Game development uses Pygame, providing drawing, audio and other functions, which are suitable for creating 2D games. 2) GUI development can choose Tkinter or PyQt. Tkinter is simple and easy to use, PyQt has rich functions and is suitable for professional development.

Python is suitable for data science, web development and automation tasks, while C is suitable for system programming, game development and embedded systems. Python is known for its simplicity and powerful ecosystem, while C is known for its high performance and underlying control capabilities.

You can learn basic programming concepts and skills of Python within 2 hours. 1. Learn variables and data types, 2. Master control flow (conditional statements and loops), 3. Understand the definition and use of functions, 4. Quickly get started with Python programming through simple examples and code snippets.

Python is widely used in the fields of web development, data science, machine learning, automation and scripting. 1) In web development, Django and Flask frameworks simplify the development process. 2) In the fields of data science and machine learning, NumPy, Pandas, Scikit-learn and TensorFlow libraries provide strong support. 3) In terms of automation and scripting, Python is suitable for tasks such as automated testing and system management.

You can learn the basics of Python within two hours. 1. Learn variables and data types, 2. Master control structures such as if statements and loops, 3. Understand the definition and use of functions. These will help you start writing simple Python programs.

How to teach computer novice programming basics within 10 hours? If you only have 10 hours to teach computer novice some programming knowledge, what would you choose to teach...

How to avoid being detected when using FiddlerEverywhere for man-in-the-middle readings When you use FiddlerEverywhere...


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment