Dec-18-2019, 10:58 AM
(This post was last modified: Dec-18-2019, 10:58 AM by furiousfrodo.)
Hi,
I'm a beginner in Python coding and I've been trying to automate a task where a user searches for a ref no and get the corresponding text from the search results and updates it in an excel spreadsheet for against the respective ref no.
The website is https://rulings.cbp.gov/home
When we search (for ex: N306867) for a specific ref no in the homepage we get a search result page. The text I'm looking for is inside this HTML code
<div _ngcontent-c18="" fxflex="100" style="flex: 1 1 100%; box-sizing: border-box; max-width: 100%;">
Classification
</div>
So far, I've gotten the code to work where it opens and searches the ref numbers. But when I try to get that text from the category column in the result (in this case, Classification), I'm getting an error.
Can someone help me out here to get the text as a variable so that I can store it in the spreadsheet ?
Thanks, let me know if any more detail is required
I'm a beginner in Python coding and I've been trying to automate a task where a user searches for a ref no and get the corresponding text from the search results and updates it in an excel spreadsheet for against the respective ref no.
The website is https://rulings.cbp.gov/home
When we search (for ex: N306867) for a specific ref no in the homepage we get a search result page. The text I'm looking for is inside this HTML code
<div _ngcontent-c18="" fxflex="100" style="flex: 1 1 100%; box-sizing: border-box; max-width: 100%;">
Classification
</div>
So far, I've gotten the code to work where it opens and searches the ref numbers. But when I try to get that text from the category column in the result (in this case, Classification), I'm getting an error.
Can someone help me out here to get the text as a variable so that I can store it in the spreadsheet ?
Thanks, let me know if any more detail is required