lol... cool.. I was able before... but tired to do that now... hope a good lucky to find one.
2022-07-06 18:11
read the git repo? google?
2022-07-06 18:13
(I know it is in python but I can link it to java)
NO
2022-07-06 18:14
dude, it's not a question, what is it that you're trying to do?
it's not even something that exists, each has different needs and a set budget cannot give you the optimal build for your needs.
building something like that is a big project if you're actually trying to make it good, so again, not sure what you're trying to do and why.
2022-07-06 18:15
1 steal mom's credit card
2 go on fivver
3 hire indian
4 relax and be toxic on faceit
5 graduate
2022-07-06 18:18
There is a concept called clustering in data mining.
Find a java program for that. And dont use it on ur idea, that is partpicker
2022-07-06 18:20
Is it necessary to have that API?
Go find REST API, there are a lot of free apis
2022-07-06 18:25
thank you for leaking your name and surname by yourself.
I am gonna find all of your private information and leak it.
2022-07-06 18:27
Try
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
2022-07-06 18:29
You have to do it, you can read that python project to know how it works, but before that you have to test it if still works cuz it seems that pcpartpicker has no official API yet, that python package is just a web scrapper for pcpartpicker site
2022-07-06 18:32
Use JavaScript not Java. Java sucks.
2022-07-06 18:33
If you dont actually need to use any API and you dont need to connect to PCPartPicker but need to create something similar. create your own database with all the parts and etc. Ask the user for their budget but also if they want a stronger cpu or gpu and how much ram is minimum requirement for them. You also need to ask them the minimum gpu and cpu specs. Do this by giving them a list of the products from the database table. Then using that you can easily query the with the minimum requirements and then if they want a strong cpu, find all the minimum products, whatever money is left over. Use that for the cpu. Giving the user a list of items will also give you the ability to add a feature where they can just pick the parts themselves which can get you more marks.
2022-07-06 18:47
No idea how to integrate beautiful python into garbastic java.
2022-07-06 19:08
to find data from pcpartpicker, if you dont know how to use the api and you dont have time to learn python, go figure out how to use selenium to web scrape on java
in terms of printing out the best hardware you are going to need to determine many more variables about the user than just budge (ex what u need pc for)
2022-07-06 19:14
Use Java 11 with sprint boot and look for some course on Udemy to help...
2022-07-06 19:29
Its so sad they still teach Java in schools, its like COBOL or something... I don't understand why anyone would use it in new projects today
2022-07-06 19:39
You could try constructing a scheme to segment the budget for specific parts. Like for budgets $1000 and below, you could allocate atleast 30% to the GPU, 25% to the CPU+Cooler, and so. Compare the scores of all the products within that price range, choose the one with the highest score, and record the excess/deficit to later tally it to the final price. For instance, if it's a $1000 build, the targetted GPU segment at this price range will be around ~$300-$400. The best performing GPU at this price range is the 3060 Ti at $400. The excess in this case is $100. Tally that to the final price, so that, when choosing the other parts, you keep note that you have $100 less to spend than what you would've otherwise had.
2022-07-06 19:37
If youre really keen on using this dudes github you can
1. export the user input into a .txt
2. Use OS commands in java to call a python script
3. In the python Script read the data from the .txt and call the necessary functions to calculate it
4. Export that data to a .txt
5. Read the data in your java program and be done
Its ugly but it should be very easy to implement
2022-07-06 19:38
Use backtracking algorithm, it is the easiest solution for you task
2022-07-06 20:02
I would just write a minor Web Scraping program and create objects for each type of item. Create ArrayList of each object and sort them by price, then you just grab items by list position to create the prices.
2022-07-06 21:30
Just to try and maybe full in some gaps.
There is no public API for this, that 3rd party software you shared is unofficial, it's gotten from scrapping.
So it's functionality is very very limited, and you have to write the code yourself to make the data useful.
Basically you have found something difficult.
2022-07-06 21:52