API Reference¶
Defines how the data is scrapped from the Trustpilot site.
- fakepilot.xray.extract_contact_info(tag)[source]¶
Extract the phone, address and email fields.
- Returns:
A pair whose first element is the phone number, then the email and finally the address.
- fakepilot.xray.extract_content(tag)[source]¶
Extract the content or body of the review.
It is returned in Unicode encoding.
- fakepilot.xray.extract_rating_stats(tag)[source]¶
Extract the number of reviews and the TrustScore.
Both attributes are extracted simultaneously because they are in the same tag.