puse / machina

Proof-of-concept browser automation toolkit :construction:
Mozilla Public License 2.0
1 stars 0 forks source link

Implement looking up user details on Twitter #8

Closed antaranyan closed 1 year ago

antaranyan commented 1 year ago

For given username, it should open that user's Twitter profile page, and read details such as name, profile image, bio, etc.

Example

For the user @qeri55916757 it should yield

{
  name: "Qeri",
  username: "qeri55916757",
  bio: "He's the best uncle ever! He's always up for a good time. He's also a philanthropist."
}

Abstract instructions

These can be abstracted away in UserProfileView and passed into main function as a configurable dependency (see dependency injection)

antaranyan commented 1 year ago

Expected function signature, assuming we have defined type for TwitterUserDetails

type ObtainTwitterUserDetails = async (username: TwitterUsername) => Promise<TwitterUserDetails>