public static void newCodeExtractor(String fn, String str){
        System.out.println("called");
        String[] renta_repeater = str.split("renta_repeater");
        ArrayList<String> renta_repeater_filtered = new ArrayList();
        for (String rr : renta_repeater) {
            if (rr.contains("renta_publicado")) {
                renta_repeater_filtered.add(rr);
            }
        }
        for (String al : renta_repeater_filtered) {
            String code = "";
            String date = "";
            Pattern codepat = Pattern.compile("title=\"(.*?)\"");
            Matcher matcher = codepat.matcher(al);
            if (matcher.find()) {
                System.out.println(matcher.group(1));
                code = matcher.group(1);
            }
            Pattern datepat = Pattern.compile("\"renta_publicado\">(.*?)</div>");
            Matcher datematcher = datepat.matcher(al);
            if (datematcher.find()) {
                System.out.println(datematcher.group(1));
                date = datematcher.group(1);
            }
            if((date.contains("am") || date.contains("pm")) && date.contains(":")){
                System.out.println("not added to hasht1");
                continue;
            }
            hasht1.put(code, date);
        }
    }