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

Faizy179

@Faizy179

Joined June 13th, 2026

  • 4Devlogs
  • 4Projects
  • 1Ships
  • 3Votes
Just a dude having a lit summer
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.

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.

Replying to @Faizy179

0
1
Ship Pending review

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

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

Replying to @Faizy179

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

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

Replying to @Faizy179

0
1

Followers

Loading…