Closed diegozr1 closed 8 years ago
I found the list of projects on bitbucket dashboard by using this
bucket_names = tree.xpath('//div[@class="repo-list--repo"]/a/text()') print(bucket_names)
instead of using
bucket_elems = tree.findall(".//span[@class='execute repo-list--repo-name']") bucket_names = [bucket_elem.text_content().replace("\n", "").strip() for bucket_elem in bucket_elems]
I used python3 (just changed the print method)
Thanks @zdr00 !
Fixed and pushed.
I found the list of projects on bitbucket dashboard by using this
bucket_names = tree.xpath('//div[@class="repo-list--repo"]/a/text()') print(bucket_names)
instead of using
bucket_elems = tree.findall(".//span[@class='execute repo-list--repo-name']") bucket_names = [bucket_elem.text_content().replace("\n", "").strip() for bucket_elem in bucket_elems]
I used python3 (just changed the print method)