def get_records(self, search_url):
        records = requests.get(search_url)

        total = int(records.json()['counts']['registration'])

        from_arg = 0
        all_records = []
        while total < len(all_records):
            record_list = records.json()['results']

            for record in record_list:
                all_records.append(record)

            from_arg += 1000
            records = requests.get(search_url + '&from={}'.format(str(from_arg)), throttle=10)

        return all_records
dataset/ETHPy150Open CenterForOpenScience/scrapi/scrapi/harvesters/osf.py/OSFHarvester.get_records/swapped operands of `<`