Skip to content

Can't get HTML #1

@DeveloperSuccess

Description

@DeveloperSuccess

Hi, I don't get anything back. No mistakes either, why?

public class MainActivity extends AppCompatActivity {
public TextView textView;
    WebScraper webScraper;
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        textView = findViewById(R.id.text);
        textView.setText("ну почему");
       webScraper = new WebScraper(this);
        webScraper.setUserAgentToDesktop(true);
        webScraper.loadURL("https://www.github.com/");
        String html = webScraper.getHtml();
        textView.setText(html);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions