You are browsing as a guest. Sign up (or log in) to start making projects!

Faizy179

@Faizy179

Joined June 13th, 2026

  • 6Devlogs
  • 4Projects
  • 1Ships
  • 3Votes
Just a dude having a lit summer
Open comments for this post

59m 28s logged

Scraping & Parsing logic fully complete!

After a lot of work, I converted the code from printing the recipe onto the console to returning it as a JsonObject. This will ideally allow me to use an api to fetch it from a frontend website.

I tested the program with various recipe websites and they all seem to work! Originally, I was having trouble with website security features but through the use of selenium I was able to get past to the website.

For the next devlog I hope to be done API integration, and some basic front end testing.

Original post
@Faizy179

Scraping & Parsing logic fully complete!

After a lot of work, I converted the code from printing the recipe onto the console to returning it as a JsonObject. This will ideally allow me to use an api to fetch it from a frontend website.

I tested the program with various recipe websites and they all seem to work! Originally, I was having trouble with website security features but through the use of selenium I was able to get past to the website.

For the next devlog I hope to be done API integration, and some basic front end testing.

Replies

Loading replies…

0
3
Open comments for this post

1h 21m 21s logged

Ingredients can now print on the console

I have just finished a prototype version where, when given a recipe link, the ingredients of the recipe are printed. This took a lot of time, and I had to change what package i used to make it work. The trick to make this work really boiled down into the fact that most recipe websites store their data in json. As a result, this is really easy to scrape and extract. Here is an example of the ingredients of some chocolate brownies printing in the console.

Original post
@Faizy179

Ingredients can now print on the console

I have just finished a prototype version where, when given a recipe link, the ingredients of the recipe are printed. This took a lot of time, and I had to change what package i used to make it work. The trick to make this work really boiled down into the fact that most recipe websites store their data in json. As a result, this is really easy to scrape and extract. Here is an example of the ingredients of some chocolate brownies printing in the console.

Replies

Loading replies…

0
5
Open comments for this post

1h 50m 15s logged

Website Scraper

Through the use of the JSoup java library I tried implementing a website scraper, witch takes all of the elements on a website and displays it as plain text on the console. This method worked for less secure sites such as wikipedia, but on most recipe sites that may use cloudflare it did not work. This is likely due to the anitscraping measures cloudflare has set. To work around this I may play around with other java libraries that usually have a higher success rate.

Also, I don’t know why my coding time saved under the ‘user’ project in hackatime rather than a frictionless project. If anyone can help with that, that would be lovely.

Original post
@Faizy179

Website Scraper

Through the use of the JSoup java library I tried implementing a website scraper, witch takes all of the elements on a website and displays it as plain text on the console. This method worked for less secure sites such as wikipedia, but on most recipe sites that may use cloudflare it did not work. This is likely due to the anitscraping measures cloudflare has set. To work around this I may play around with other java libraries that usually have a higher success rate.

Also, I don’t know why my coding time saved under the ‘user’ project in hackatime rather than a frictionless project. If anyone can help with that, that would be lovely.

Replies

Loading replies…

0
1
Ship

I have made a slack bot that delivers you riddles. You can type in a riddle command, witch randomly generates a riddle from the bank of riddle and displays it, and you can guess the riddle by using the guess command. One big step back that occurred was my 45 minute time laps deleting. This resulted in a lack of documentation of my work. On the other hand, I am very happy I got the riddles to display as this is the first time that I have used javascript

Try project → See source code →
Open comments for this post

16m 49s logged

Added the riddle to the bot and made it run 24/7

Ran into a couple bugs today.
Bug 1:
put the wrong working directory for the nest server to reference. Since this directory did not exist, the server could not run the slack bot. To fix this, i simply got the directory of the slack bot and put that in as the working directory

Bug 2:
Issues with correct answer validation
If the answer to one of the riddles was Seven for example, and the user guessed Seven, the slack bot would mark that as incorrect. While debugging, I realised that this issue was caused by the usage of the toLowerCase() string function. I was making the users answers lowercase resulting in the code comparing the correct answer “Seven” with “seven” and deeming that as incorrect. To fix this I simply changed all the answers to lowercase strings

Original post
@Faizy179

Added the riddle to the bot and made it run 24/7

Ran into a couple bugs today.
Bug 1:
put the wrong working directory for the nest server to reference. Since this directory did not exist, the server could not run the slack bot. To fix this, i simply got the directory of the slack bot and put that in as the working directory

Bug 2:
Issues with correct answer validation
If the answer to one of the riddles was Seven for example, and the user guessed Seven, the slack bot would mark that as incorrect. While debugging, I realised that this issue was caused by the usage of the toLowerCase() string function. I was making the users answers lowercase resulting in the code comparing the correct answer “Seven” with “seven” and deeming that as incorrect. To fix this I simply changed all the answers to lowercase strings

Replies

Loading replies…

0
2
Open comments for this post

18m logged

Built a slack bot that can run predefined riddles.

To achieve this i set an array with the riddle questions and their answers. Than, I added two commands, one to display the riddle, and the other to get the users response and display wether the user was correct or not. The bot has not been tested yet, nor have the final riddles been added. All of this will be done once nest application is approved

Original post
@Faizy179

Built a slack bot that can run predefined riddles.

To achieve this i set an array with the riddle questions and their answers. Than, I added two commands, one to display the riddle, and the other to get the users response and display wether the user was correct or not. The bot has not been tested yet, nor have the final riddles been added. All of this will be done once nest application is approved

Replies

Loading replies…

0
2

Followers

Loading…