kxzk/scraping-with-rust

Unwrap method for reqwest

Closed this issue · 0 comments

SFrav commented

When running these examples I get various compile errors. For example, there’s an error about the unwrap method for reqwest.

Is there a versioning issue here? I’m using the 2018 edition and have tried various versions of reqwest.
Looking at the documentation, should I use the .text method instead?

I’m new to rust. I read the rust book and did the rust by example course a while ago. This is beyond me though.
Is there a way of checking what methods are available for a function? I only see .text in the documentation example.