Fuckin *Wild* Ass Plants +((+))+Database

4206942069 Regular
edited October 2010 in Life
I want to catalog everything about North American plants. 21st century desensitization of what grows around and within us is why I satirically engulf myself and surrounds with cyber roots of this invisible dimension.

anyone have a giant text file or database of their own, or could link to me a good in-internet-ternal one? If everyone posted one paragraph of a different plant (including trees, but not including ents) then this cataloNg would be on a good start.

◙ cyber_ROOT_cephalization‼
4-the conquest of THE PLANTS

think about it)(()&9
who's gonna win?
us
or the father raping plants?

Comments

  • stresstres Regular
    edited October 2010
    Your not, by any chance... related to Brandon are you?
  • 4206942069 Regular
    edited October 2010
    I don't know who the fuck brandon is, but I guarantee I could kick his ass

    FMFAQ
    A: I didn't make this thread to answer off-topic questions

    @stres
    either follow me and fight the plants or fuck off
  • edited October 2010
    42069 wrote: »
    I don't know who the fuck brandon is, but I guarantee I could kick his ass

    FMFAQ
    A: I didn't make this thread to answer off-topic questions

    @stres
    either follow me and fight the plants or fuck off

    I believe, that, with all common courtesy, and a big :confused:to your esoteric, poorly worded and meaningless thread, I will "fuck right the hell off". Here I go, watch me. Right off, I am fucking, right away, did you catch it?, no?, I'll do it again. Whooo there I went.
    C/O
    "Don't try to out-weird me sonny, I get weirder things than you in my breakfast cereal"; Zaphod Beeblebrox
  • 4206942069 Regular
    edited October 2010
    for now google searching will do for lookup, cataloging all of this would be really tough, which is why I'm asking for text files

    this is a pretty solid database, only it is online and is built on comments from people, so legitimacy would be a problem, and it has a limit of 10 searches per day, unless you subscribe
    also the habitat info is lacking, paired with http://plants.usda.gov/, habitat is solid

    so for now

    Info
    http://www.erowid.org/
    http://davesgarden.com/guides/pf/
    [URLhttp://healthnotes.deliciouslivingmag.com/[/URL]
    [URLhttp://www.ncbi.nlm.nih.gov/pubmed/[/URL]
    [URLhttp://www.ars-grin.gov/duke/[/URL]
    [URLhttp://abc.herbalgram.org/site/PageServer?pagename=Herbal_Library/[/URL]
    [URLhttp://www.plant-medicine.com/[/URL]
    [URLhttp://www.ibiblio.org/pfaf/D_med.html/[/URL]


    Habitat
    http://plants.usda.gov/
  • Tiny_Penis : (Tiny_Penis : ( Regular
    edited October 2010
    i am really FUCKING confused
  • edited October 2010
    i am really FUCKING confused

    Me too. That's why I've ignored it.
  • edited October 2010
    ^^^^Scanners. awesome old flick, Canadian too!! Perhaps the OP is raising awareness of a perceived threat from plants, IE; Day of The Triffids, or Invasion of the Body Snatchers. Perhaps he hits the glass dick for breakfast. Or maybe he's just nuts.
  • edited October 2010
    Write a book about poysin liserds instead you shitty xerox troll.
    :mad::(:mad:
    :(:mad::(
    :mad::(:mad:
  • 4206942069 Regular
    edited October 2010
    well the database is good so far,
    I have about 180,000 different plant files assorted by family, genus, species, and science name
    If anyone is interested at all in helping I'll share.
  • stresstres Regular
    edited October 2010
    42069 wrote: »
    If anyone is interested at all in helping I'll share.

    u wont
  • 4206942069 Regular
    edited October 2010
    @stres

    compile this shit

    and write one that does the same thing for another website; erowid or an online library, or just gets pictures and saves them in the same folder as the plant

    and if you could tell me how to make this program faster, that'd be cool I don't know much about java

    package URLExp;
    import java.net.URL;
    import java.net.URLConnection;
    import java.io.*;
    import java.util.Scanner;
    
    
    public class Main {
    
    
    	public static void main(String[] args) {
    
                Scanner keyboard = new Scanner(System.in);
    
                int count = 1, end = 1;
           
    
                System.out.println("Enter Starting Number");
                count = keyboard.nextInt();
    
                System.out.println("Enter Ending Number");
                end = keyboard.nextInt();
    
    
                
                try {
    
                    while(count <= end)
    
                    {
    			URL plants = new URL("http://davesgarden.com/guides/pf/print.php?pid=" +count);
    
    			URLConnection yc = plants.openConnection();
    			BufferedReader in = new BufferedReader(new InputStreamReader(yc
    					.getInputStream()));
    			
    
                            //my code-------------------------------------
                            String input;
                            int check;
    
                            System.out.println("");
                            System.out.println("Plant #" +count);
    
                            while ((input = in.readLine()) != null)                        
                            {
                            // start it
                            check = getCommonName(input);
    
                            if (check >= 9)
                            {
                                System.out.println("Blank Page");
                                break;
                            }
                         
                            }                                                            
    			in.close();
    
                            count++;
                            
                    }
                           
    
    		} catch (Exception e) {
    			e.printStackTrace();
    		}
    
                }
    
    	
        public static int getCommonName(String inLine)
        {
    
        String commonName ="", input = inLine;
        int counterI, counterII, check;
    
                                check = 0;
                                counterI = 0;
                                counterII = 1;                            
    
                                while((counterII-counterI) < 7)
                                {
                                    while ((input.charAt(counterI)) != '>')
                                    counterI++;
    
                                    counterII = counterI;
                                    while ((input.charAt(counterII)) != '<')
                                    counterII++;
    
                                    check++;
                                    if(check>3)
                                    {
                                    counterI++;
                                    while ((input.charAt(counterI)) != '>')
                                    counterI++;
                                    
                                    counterII = counterI;
                                    while ((input.charAt(counterII)) != '<')
                                    counterII++;
    
                                    check++;
                                    if(check>6)
                                    {
                                    counterI++;
                                    while ((input.charAt(counterI)) != '>')
                                    counterI++;
    
                                    counterII = counterI;
                                    while ((input.charAt(counterII)) != '<')
                                    counterII++;
    
                                    check++;
                                    if(check>=9)
                                        {
                                        return(check);
                                        }
                                    }
                                    }
                                }                       
    
                           commonName = input.substring(counterI+1, counterII);
                           System.out.println(commonName);
    
                           check = getScientificName(input, commonName, counterI, counterII);
    
                           return(check);
    
            }
    
        public static int getScientificName(String inLine, String Cname,
                int counter1, int counter2)
        {
            String input = inLine, scientificName = "", commonName = Cname;
            int counterI = counter1, counterII = counter2, check;
            
                            check = 0;
                            counterI += 5;
                            counterII = counterI;
                            
                            while((counterII-counterI) < 7)
                                {
                                    while ((input.charAt(counterI)) != '>')
                                    counterI++;
    
                                    counterII = counterI;
                                    while ((input.charAt(counterII)) != '<')
                                    counterII++;
    
                                    check++;
                                    if(check>3)
                                    {
                                    counterI++;
                                    while ((input.charAt(counterI)) != '>')
                                    counterI++;
    
                                    counterII = counterI;
                                    while ((input.charAt(counterII)) != '<')
                                    counterII++;
    
                                    if(check>6)
                                    {
                                    counterI++;
                                    while ((input.charAt(counterI)) != '>')
                                    counterI++;
    
                                    counterII = counterI;
                                    while ((input.charAt(counterII)) != '<')
                                    counterII++;
                                    
                                    if(check>9)
                                        {
                                        System.out.println("Error Reading Scientific Name");
                                        return(check);
                                        }
                                    }
                                    }
                                }
                           scientificName = input.substring(counterI+1, counterII);
                           System.out.println(scientificName);
    
                           getFamily(input, commonName, scientificName);
    
                           return(check);
        }
    
        public static void getFamily(String inLine, String Cname, String Sname)
        {
            int counterIII, counterIV;
            String family = "", input = inLine, commonName = Cname, scientificName = Sname;
            
                            counterIII = 0;
                            while (input.charAt(counterIII) != ':')
                                counterIII++;
    
                            counterIV = counterIII;
                            while (input.charAt(counterIV) != '<')
                                counterIV++;
                            
                            family = input.substring(counterIII+2, counterIV);
                            System.out.println("Family: "+family);
                            
                            getGenus(input, commonName, scientificName, family, counterIII, counterIV);
                            
             
            
        }
    
        public static void getGenus(String inLine, String Cname, String Sname,
                String fam, int counter3, int counter4)
        {
            int counterIII = counter3, counterIV = counter4;
            String input = inLine, commonName = Cname, scientificName = Sname, genus = "";
            String family = fam;
    
                            counterIII++;
                            while (input.charAt(counterIII) != ':')
                                counterIII++;
    
                            counterIV = counterIII;
                            while (input.charAt(counterIV) != '/')
                                counterIV++;
                            genus = input.substring(counterIII+5, counterIV-1);
    
                            System.out.println("Genus: "+genus);
    
                            getSpecies(input, commonName, scientificName, family, genus, counterIII, counterIV);
        }
    
        public static void getSpecies(String inLine, String Cname, String Sname,
                String fam, String gen, int counter3, int counter4)
        {
            int counterIII = counter3, counterIV = counter4;
            String input = inLine, commonName = Cname, scientificName = Sname, species = "";
            String family = fam, genus = gen;
    
            String searchMe = input;
            String substring = "Species";
            boolean found = (searchMe.contains(substring) ? true : false);
            String searchMe2 = input;
            String substring2 = "Cultivar";
            boolean found2 = (searchMe2.contains(substring2) ? true : false);
    
            if(found == true)
            {
                            counterIII++;
                            while (input.charAt(counterIII) != ':')
                                counterIII++;
    
                            counterIV = counterIII;
                            while (input.charAt(counterIV) != '/')
                                counterIV++;
                            species = input.substring(counterIII+5, counterIV-1);
    
                            System.out.println("Species: "+species);
            }
            else if(found2 == true)
            {
                            counterIII++;
                            while (input.charAt(counterIII) != ':')
                                counterIII++;
    
                            counterIV = counterIII;
                            while (input.charAt(counterIV) != '/')
                                counterIV++;
                            species = input.substring(counterIII+2, counterIV-1);
    
                            scientificName = species;
                            System.out.println("Cultivar: "+species);
    
            }
    
                            saveData(input, scientificName, family, genus, species);
        }
    
        public static void saveData(String inLine, String Sname,
                String fam, String gen, String spec)
        {
            String input = inLine, scientificName = Sname, family = fam;
            String genus = gen, species = spec;
             String path="C:/Plant_Database"+"/"+family+"/"+genus+"/"+species;
    
        FileOutputStream out; // declare a file output object
                    PrintStream data; // declare a print stream object
    
        try
        {
    
    
        // Create multiple directories
        boolean success = (new File(path)).mkdirs();
        if (success) {
          System.out.println("Directories: " + path + " created");
        }
    
        }
        catch (Exception e){//Catch exception if any
          System.err.println("Error: " + e.getMessage());
        }
    
    
    
            try
                    {
                            // Create a new file output stream
                            // connected to "myfile.txt"
                            out = new FileOutputStream(path+"/"+scientificName+".php");
                            // Connect print stream to the output stream
                            data = new PrintStream( out );
                            data.println (input);
                            data.close();
                    }
            catch (Exception e)
                    {
                            System.err.println ("Error writing to file");
                    }
    
    
    
        }
    }
    
Sign In or Register to comment.