Python AH Buyer / Seller / ffxiah.com scrubber

Applications/Tools written to make running DarkStar easier for the rest of us.
Lucious_Llama
Posts: 40
Joined: Mon Jul 28, 2014 5:22 pm

Re: Python AH Buyer / Seller / ffxiah.com scrubber

Post by Lucious_Llama » Sat Sep 26, 2015 4:56 pm

Here is an items.csv created today.

I also changed added this to the repository, as well as changed the code to try 10 times before letting a url request crash the scrubber.
Attachments
items.csv
(958.9 KiB) Downloaded 661 times

User avatar
tabitaru
Posts: 99
Joined: Sun Apr 12, 2015 4:49 am

Re: Python AH Buyer / Seller / ffxiah.com scrubber

Post by tabitaru » Sun Sep 27, 2015 2:00 am

!
Last edited by tabitaru on Sun Oct 18, 2015 6:54 am, edited 1 time in total.

User avatar
tabitaru
Posts: 99
Joined: Sun Apr 12, 2015 4:49 am

Re: Python AH Buyer / Seller / ffxiah.com scrubber

Post by tabitaru » Mon Sep 28, 2015 9:01 am

!
Last edited by tabitaru on Sun Oct 18, 2015 6:54 am, edited 1 time in total.

Lucious_Llama
Posts: 40
Joined: Mon Jul 28, 2014 5:22 pm

Re: Python AH Buyer / Seller / ffxiah.com scrubber

Post by Lucious_Llama » Tue Sep 29, 2015 7:50 pm

Updated this for python 3.

Airking
Posts: 8
Joined: Wed Feb 12, 2014 1:12 am

Re: Python AH Buyer / Seller / ffxiah.com scrubber

Post by Airking » Sun Oct 25, 2015 12:47 pm

I need some help with this. I am trying to run the clear.bat to clear the AH before I start up the broker. I tried following the guide on the website but I can't seem to get this to work correctly. I am not familiar with python at all so I am probably doing stuff wrong. I have Anaconda installed and ran the updates\installs that I was told to. I edited the config so that it connects with mysql.

When I try to run clear.bat I get the following error:

C:\Anaconda3\python.exe: Error while finding spec for 'pydarkstar.apps.clear.run' (<class 'ImportError'>: No module named 'pydarkstar')

Any help would be appreciated.

Lucious_Llama
Posts: 40
Joined: Mon Jul 28, 2014 5:22 pm

Re: Python AH Buyer / Seller / ffxiah.com scrubber

Post by Lucious_Llama » Sun Oct 25, 2015 2:12 pm

Can you post the contents of clear.bat? Open it up in a text editor.

Airking
Posts: 8
Joined: Wed Feb 12, 2014 1:12 am

Re: Python AH Buyer / Seller / ffxiah.com scrubber

Post by Airking » Sun Oct 25, 2015 2:23 pm

After some messing around I think I got it working.

Code: Select all

@ECHO OFF
set PYTHONPATH="%PYTHONPATH%;F:\pydarkstar"
python -m pydarkstar.apps.clear.run %*
I ended up having to copy the pydarkstar directory into my Anaconda directory. After that I was was able to run clear.bat and it did actually clear the auction house. I am currently restocking and attempting to use the broker to see if I actually set it up right.

I did notice that I had to change the None to python in each .bat in order for them to work. That was confusing and took some time to figure out.

Lucious_Llama
Posts: 40
Joined: Mon Jul 28, 2014 5:22 pm

Re: Python AH Buyer / Seller / ffxiah.com scrubber

Post by Lucious_Llama » Sun Oct 25, 2015 4:05 pm

Odd that it said "None", I will fix that. You are right it should of said "python".

The line containing F:\pydarkstar is telling python where to look for pydarkstar. Fix that path and the bat script will work anywhere you put it.

Airking
Posts: 8
Joined: Wed Feb 12, 2014 1:12 am

Re: Python AH Buyer / Seller / ffxiah.com scrubber

Post by Airking » Sun Oct 25, 2015 4:26 pm

I see. Thanks for the help! I got it all working now.

B_Type13X2
Posts: 30
Joined: Fri Nov 06, 2015 8:02 am

Re: Python AH Buyer / Seller / ffxiah.com scrubber

Post by B_Type13X2 » Sat Nov 07, 2015 2:26 pm

If my goal is to set up this ah tool and have it only populate items up to lvl 75 I need to use Navicat or someother tool to set up a database for pydarkstar the sameway I did for the server set up and then do a mysql query to delete those items I don't want from the ah via quoting nesstea " delete from auction_house where itemid in (select itemid from item_armor where level >75) " correct?

Post Reply