A pet waste collector includes a bag body and a waste collecting apparatus. The bag body, which is made of flexible material, has a top opening and a waste collecting cavity. The waste collecting apparatus includes two elongated scraper arms spacedly affixed at the bag body to partition the bag body into a first bag portion and a second bag portion. When the bag body is reversibly flipped inside out from the top opening to form a temporary waste cavity within the first bag portion of the bag body, the scraper arms are moved toward each other for enclosing the temporary waste cavity within the first bag portion of the bag body and for scraping a pet waste within the temporary waste cavity. Therefore, the bag body is flipped back for automatically retaining the pet waste in the waste collecting cavity from the temporary waste cavity.