Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Neolib

  1. #1

    Joined
    Sep 2012
    Posts
    39
    Userbars
    0
    Thanks
    0
    Thanked
    31/15
    Mentioned
    11 times
    Time Online
    2d 8h 38m
    Avg. Time Online
    N/A

    Neolib

    Neolib is an in-depth and robust Python library designed to assist programmers in creating programs which automate mundane tasks on the popular browser based game, Neopets. The goal of Neolib is to objectify Neopets by translating it's many objects and tasks into classes and functions that represent them.


    Project URL: (you need an account to see links)
    Project Owner: (you need an account to see links) (AliasXNeo, Alias)
    Repository Type: Git
    Python Version: 3.2.3

    Current Team Members


    • Alias (Project Leader)

    Helpful Information


    Project News

    • 21 Sep - Now that the base has been laid, Neolib is now open source again!

    Why Join?

    • By joining you will be participating in a project that directly helps Clraik
    • Participation in the project will teach you important concepts that can help develop your skills as a programmer. These include version control, documentation, and all the little things you learn by interacting with other programmers in a project environment
    • Your contributions will help several programmers!

    Before you join

    • Please checkout the repository from Github and spend time reviewing the code including any recent commits.
    • If you have any questions please feel free to contact a project member or join #neolib on Freenode and talk to someone in there.
    • Ensure to review any open issues and enhancements and check the wiki for amplifying information
    • Please understand that this project is running under Python 2.7.3. If you don't know what that means, please figure it out.
    • If you have never used Git, please use the above links to educate yourself prior to joining the project. It is vital you understand how Git works as it differs from it's counterparts like subversion.
    • Once you have completed the above steps, and thoroughly reviewed the project, then please submit an application (format shown below) via PM to me (alias).


    --------------------------------------------------------------------------------------
    Feel free to post your feelings, concerns, and/or broad questions below :p

    Member Application


    • Name (First name):
    • Programming experience in years:
    • Proficient languages:
    • Experience with Python in years:
    • Have you ever used Git? If not, have you since learned how?
    • Have you ever been apart of a project like this? Explain.
    • Why do you want to join the project?
    • Any amplifying information?
    Last edited by AliasXNeo; 10-05-2012 at 06:32 PM.

  2. The Following 2 Users Say Thank You to AliasXNeo For This Useful Post:

    j03 (10-04-2012),Reemer (10-04-2012)

  3. #2
    I_royalty_I's Avatar
    Joined
    Dec 2011
    Posts
    7,020
    Userbars
    78
    Thanks
    6,786
    Thanked
    10,958/3,908
    DL/UL
    30/0
    Mentioned
    1,998 times
    Time Online
    435d 9h 54m
    Avg. Time Online
    2h 29m
    Interesting concept for sure.
    Do you have a more well known username on another site?
    What's my definition of success?
    Creating something no one else can
    Being brave enough to dream big
    Grindin' when you're told to just quit
    Giving more when you got nothin' left

  4. #3

    Joined
    Sep 2012
    Posts
    39
    Userbars
    0
    Thanks
    0
    Thanked
    31/15
    Mentioned
    11 times
    Time Online
    2d 8h 38m
    Avg. Time Online
    N/A
    I did a lot of programming about 6 years ago when my username was known a lot more (I've made at least one of every popular program type, including a premium MAB I sold). I have since returned to the programming scene for another bout

    I don't really have much to brag with since it's all long gone. However, here's some sample code of the latest version of the library (0.2):

    Code:
    from neolib.user.User import User
    from neolib.daily.Daily import Daily
    
    usr = User("username", "password")
    if usr.login(): print "Logged in!"
    
    list = ['Tombola', 'FruitMachine', 'PetPetPark']
    for message in Daily.doDailies(usr, list):
        print message
    
    print "All dailies done!"
    That's an example of the user end. For the developer end, here's a sample:

    Code:
    def __init__(self, usr):
            if not usr:
                raise invalidUser
                
            self.items = {}
            pg = usr.getPage("http://www.neopets.com/objects.phtml?type=inventory")
            
            # Indicates an empty inventory
            if pg.content.find("You aren't carrying anything") != -1:
                return
            
            try:
                for row in pg.find_all("td", "contentModuleContent")[1].table.find_all("tr"):
                    for item in row.find_all("td"):
                        name = item.text
                        
                        # Some item names contain extra information encapsulated in paranthesis
                        if name.find("(") != -1:
                            name = name.split("(")[0]
                        
                        tmpItem = Item(name)
                        tmpItem.id = item.a['onclick'].split("(")[1].replace(");", "")
                        tmpItem.img = item.img['src']
                        tmpItem.desc = item.img['alt']
                        tmpItem.usr = usr
                        
                        self.items[name] = tmpItem
            except Exception:
                logging.getLogger("neolib.inventory").exception("Unable to parse user inventory.")
                logging.getLogger("neolib.html").info("Unable to parse user inventory.", {'pg': pg})
                raise parseException
    That's the code for the UserInventory class __init__() method.

  5. #4
    Saiyan Race
    j03's Avatar
    Joined
    Dec 2011
    Posts
    13,722
    Userbars
    166
    Thanks
    5,906
    Thanked
    33,077/6,608
    DL/UL
    23/36
    Mentioned
    3,867 times
    Time Online
    563d 5h 25m
    Avg. Time Online
    3h 13m
    If I wasn't so busy with school and my own projects I have going I would definitely join in on this.
    (you need an account to see links)
    (you need an account to see links)(you need an account to see links)

    ------------------------
    [02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
    ------------------------


  6. #5

    Joined
    Sep 2012
    Posts
    39
    Userbars
    0
    Thanks
    0
    Thanked
    31/15
    Mentioned
    11 times
    Time Online
    2d 8h 38m
    Avg. Time Online
    N/A
    Quote Originally Posted by Infamous Joe View Post
    If I wasn't so busy with school and my own projects I have going I would definitely join in on this.
    Yeah that's been the case with most programmers, its been tough finding contributers :p

  7. #6
    Saiyan Race
    j03's Avatar
    Joined
    Dec 2011
    Posts
    13,722
    Userbars
    166
    Thanks
    5,906
    Thanked
    33,077/6,608
    DL/UL
    23/36
    Mentioned
    3,867 times
    Time Online
    563d 5h 25m
    Avg. Time Online
    3h 13m
    Quote Originally Posted by AliasXNeo View Post
    Yeah that's been the case with most programmers, its been tough finding contributers :p
    To be honest, I have something similar to this being made as we speak. Been working on it for a while now and it will most likely be closed-source.
    (you need an account to see links)
    (you need an account to see links)(you need an account to see links)

    ------------------------
    [02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
    ------------------------


  8. #7

    Joined
    Sep 2012
    Posts
    39
    Userbars
    0
    Thanks
    0
    Thanked
    31/15
    Mentioned
    11 times
    Time Online
    2d 8h 38m
    Avg. Time Online
    N/A
    Quote Originally Posted by Infamous Joe View Post
    To be honest, I have something similar to this being made as we speak. Been working on it for a while now and it will most likely be closed-source.
    That's cool. This will most likely remain closed source as well, seeing as how powerful it is turning out to be. I've been having a blast refactoring it and making it more Pythonic (then again Python is fun to begin with).

    Well anyways, for those that are interested just shoot me a PM. It's currently hosted on a private Github repo at the moment. The base has been laid and focus is currently on expanding the object base (currently supports the basics like inventory, user shops, shop wizard, SDB, etc.).

  9. #8
    Saiyan Race
    j03's Avatar
    Joined
    Dec 2011
    Posts
    13,722
    Userbars
    166
    Thanks
    5,906
    Thanked
    33,077/6,608
    DL/UL
    23/36
    Mentioned
    3,867 times
    Time Online
    563d 5h 25m
    Avg. Time Online
    3h 13m
    Hopefully you saved everything you had updated the first post to?
    (you need an account to see links)
    (you need an account to see links)(you need an account to see links)

    ------------------------
    [02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
    ------------------------


  10. #9
    Saiyan Race
    j03's Avatar
    Joined
    Dec 2011
    Posts
    13,722
    Userbars
    166
    Thanks
    5,906
    Thanked
    33,077/6,608
    DL/UL
    23/36
    Mentioned
    3,867 times
    Time Online
    563d 5h 25m
    Avg. Time Online
    3h 13m
    Quote Originally Posted by Miguel View Post
    That's what a repository is for
    No I meant his first post, it had a pretty descriptive paragraph and all that.
    (you need an account to see links)
    (you need an account to see links)(you need an account to see links)

    ------------------------
    [02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
    ------------------------


  11. #10

    Joined
    Jun 2012
    Posts
    131
    Userbars
    1
    Thanks
    21
    Thanked
    50/22
    DL/UL
    37/0
    Mentioned
    22 times
    Time Online
    4d 17h 8m
    Avg. Time Online
    1m

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •